note 107459 deleted from function.date by tularis
| From: | tularis@php.net | Date: | Sun, 12 Feb 2012 11:23:03 +0000 |
| Subject: | note 107459 deleted from function.date by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-186077@lists.php.net to get a copy of this message | ||
Note Submitter: Robert Haglund
----
After searching the web for a easy way of including microseconds I finally found this at:
http://stackoverflow.com/questions/169428/php-datetime-microseconds-always-returns-0
date_create_from_format('U.u', microtime(true))->format('Y-m-d H:i:s.u');
The result will be
2012-02-09 09:16:31.590200