Click here to Skip to main content
15,881,380 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: How to mirror website? Pin
badgrs18-Feb-07 0:55
badgrs18-Feb-07 0:55 
GeneralRe: How to mirror website? Pin
Bradml18-Feb-07 1:04
Bradml18-Feb-07 1:04 
GeneralRe: How to mirror website? Pin
Fred_Smith18-Feb-07 5:28
Fred_Smith18-Feb-07 5:28 
QuestionProblem in TreeView Pin
Jeeva Mary Varghese16-Feb-07 23:33
Jeeva Mary Varghese16-Feb-07 23:33 
QuestionRegarding Cache Pin
John.L.Ponratnam16-Feb-07 21:01
John.L.Ponratnam16-Feb-07 21:01 
AnswerRe: Regarding Cache Pin
Michael Sync16-Feb-07 22:53
Michael Sync16-Feb-07 22:53 
GeneralRe: Regarding Cache Pin
Bradml17-Feb-07 1:13
Bradml17-Feb-07 1:13 
Questiontime difference in php Pin
hiral_shah16-Feb-07 17:55
hiral_shah16-Feb-07 17:55 
AnswerRe: time difference in php Pin
Bradml16-Feb-07 18:30
Bradml16-Feb-07 18:30 
YES, see Chris, we need a PHP forum!!!

The best way to do that is to create a single number, subtract them and then create the new number. Once you have this use substr to re-create the format,

<?php
$time1 = '13:31:00';
$time2 = '05:25:00';

$time1 = str_replace(':', '', $time1);
$time2 = str_replace(':', '', $time2);

$difference = $time1 - $time2;

$orangised_difference['hours'] = substr(0,1, $diffrence);
$orangised_difference['minutes'] = substr(2,3, $diffrence);
$orangised_difference['seconds'] = substr(4,5, $diffrence);

$final_difference = $orangised_difference['hours']  . ':' . $orangised_difference['minutes'] . ':' . $orangised_difference['seconds'];
?>


(note, this is very rough cut example.)

?>




Brad
Australian

- Captain See Sharp on "Religion"

any half intelligent person can come to the conclusion that pink unicorns do not exist.

GeneralRe: time difference in php Pin
hiral_shah16-Feb-07 19:20
hiral_shah16-Feb-07 19:20 
GeneralRe: time difference in php Pin
Bradml16-Feb-07 19:46
Bradml16-Feb-07 19:46 
GeneralRe: time difference in php Pin
hiral_shah16-Feb-07 20:24
hiral_shah16-Feb-07 20:24 
GeneralRe: time difference in php Pin
Bradml16-Feb-07 20:29
Bradml16-Feb-07 20:29 
GeneralRe: time difference in php Pin
hiral_shah16-Feb-07 20:34
hiral_shah16-Feb-07 20:34 
GeneralRe: time difference in php Pin
Bradml16-Feb-07 20:38
Bradml16-Feb-07 20:38 
GeneralRe: time difference in php Pin
hiral_shah16-Feb-07 20:44
hiral_shah16-Feb-07 20:44 
GeneralRe: time difference in php Pin
Bradml17-Feb-07 1:14
Bradml17-Feb-07 1:14 
Questioncreating an animation Pin
v45030516-Feb-07 15:43
v45030516-Feb-07 15:43 
AnswerRe: creating an animation Pin
MatrixCoder16-Feb-07 16:24
MatrixCoder16-Feb-07 16:24 
AnswerRe: creating an animation Pin
Bradml16-Feb-07 17:50
Bradml16-Feb-07 17:50 
AnswerRe: creating an animation Pin
badgrs18-Feb-07 0:57
badgrs18-Feb-07 0:57 
QuestionMail sending - how to determine if the client uses HTML format or Text format Pin
firestoper16-Feb-07 14:49
firestoper16-Feb-07 14:49 
AnswerRe: Mail sending - how to determine if the client uses HTML format or Text format Pin
Guffa16-Feb-07 15:11
Guffa16-Feb-07 15:11 
GeneralRe: Mail sending - how to determine if the client uses HTML format or Text format Pin
firestoper16-Feb-07 15:24
firestoper16-Feb-07 15:24 
GeneralRe: Mail sending - how to determine if the client uses HTML format or Text format Pin
Bradml16-Feb-07 15:37
Bradml16-Feb-07 15:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.