|
Re: [PHP-INSTALL] mktime (): msg#00066php.install
Scott Hamm wrote: I'm trying to understand how mktime() function works. I've tried as follows:Hi Scott, mktime() creates a UNIX timestamp based on the arguments you give it ($hour, $minute, $second, $month, $day, $year, $is_dst) where $is_dst is a flag for daylight savings time, you can set it to 1 if the time is during daylight savings, 0 if not and -1 (the default) if you don't know (php will try to work it out). So for eg if you want the timestamp for January 21st, 2004 at 12:30pm and 20 seconds you would do this: <?php $time = mktime(12, 30, 20, 1, 21, 2004); echo $time; ?> Hope this helps... Cheers, Brad -- |> Brad Kowalczyk |> Web Developer |> brad@xxxxxxxxxxxx |> www.ibiscode.com
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [PHP-INSTALL] New! Vìagra soft tabs.: 00066, Kenny Castaneda |
|---|---|
| Next by Date: | [PHP-INSTALL] Apache segmentation faults: 00066, Bostjan Skufca @ domenca.com |
| Previous by Thread: | [PHP-INSTALL] mktime ()i: 00066, Scott Hamm |
| Next by Thread: | [PHP-INSTALL] New! Vìagra soft tabs.: 00066, Kenny Castaneda |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |