note 62157 deleted from function.time by danbrown
| From: | danbrown@php.net | Date: | Sat, 25 Apr 2009 14:48:16 +0000 |
| Subject: | note 62157 deleted from function.time by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-153716@lists.php.net to get a copy of this message | ||
Note Submitter: info at exitorange dot com
----
in order to get the timestamp of the beginning of the current day (useful for synchronising) just do
this:
$time = time();
$start_time = mktime(0, 0, 0, date('m', $time),date('d',
$time),date('Y', $time));