Re: What was the unix timestamp of last week, Monday 12:00 am?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



René Fournier wrote:
> I'm trying to write a [simple] function, such that:
> 
> function earlier_unix_timestamp () {   
>     $now = mktime();
>     [...]
>     return $then;  // e.g., 1238983107
>     }
> 
> Anyone have something already made? There seem to be many ways to skin
> this cat, with date() arithmetic, etc., but the exceptions (Jan 1, first
> day of the month, etc.) are driving me crazy.
> 
> ...Rene

1239598800

-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux