= 24) {
// see if we're still in the zone.
return ($dayofweek < 7) ? 1: 0;
}
return 1;
}
// something went wrong.
return -2;
}
Curt
...Thanks for your comments, Curt. Whenever I write a better code, I
will post it here.
Chirag Shukla.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This function can be used to know whether it is Daylight Savings time or
not for the given date. It may not be the most optimized program, but
may be helpful.
If there is a modified code, please let me know.
Thank you.
Sincerely,
Chirag Shukla.
// here is the date. We wont worry about
// I am using the convention (assumption) of "07/04/2004 14:45"
$processdate = "07/04/2004 14:45";
// gmttolocal is a function
// i am passing it 2 parameters:
// 1)the date in the above format and
// 2)time difference as a number; -5 in our case (G
3 matches
Mail list logo