|
Posted by Kimmo Laine on 07/13/06 06:59
"griemer" <griemer@chello.nl> wrote in message
news:1152773246.112346.279340@h48g2000cwc.googlegroups.com...
> Hi every one,
>
> Is there a way to calculate the timestamp of 00:00:00 last Sunday. For
> me, this is the begin of the current week..
> Or, how old is this week, in seconds
>
> Any ideas?
<?php echo date('Y-m-d H:i:s', strtotime('last sunday 00:00:00')); ?>
prints: 2006-07-09 00:00:00
How old this week is in seconds: mktime() - strtotime('last sunday
00:00:00');
--
"ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" -lpk
spam@outolempi.net | Gedoon-S @ IRCnet | rot13(xvzzb@bhgbyrzcv.arg)
Navigation:
[Reply to this message]
|