Quick help working with timestamps in php
Posted
by finn_meister
on Stack Overflow
See other posts from Stack Overflow
or by finn_meister
Published on 2010-04-19T10:32:01Z
Indexed on
2010/04/19
10:33 UTC
Read the original article
Hit count: 187
php
I'm working on a calendar app and need to get the timestamps for the beginning of each day/month etc:
whats the best method?
//get timestamps for start of (day, month, year)
$ts_now = time();
$ts_today =
$ts_this_month =
$ts_this_year =
© Stack Overflow or respective owner