note 18644 deleted from ref.datetime by vincent
| From: | vincent@php.net | Date: | Thu, 11 Sep 2003 11:54:21 +0000 |
| Subject: | note 18644 deleted from ref.datetime by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56080@lists.php.net to get a copy of this message | ||
Note Submitter: php-contrib@i-ps.nospam.net
----
Where possible, use the database built-in time and date functions, as they often are not affected by
the UTS limitation.
For example: I tested MySQL "dayname" with "1978-08-09" (my birthdate), which
returned "Wednesday", which is correct.
I also tried "1500-08-09", which returned Thursday. I have no actual way of verifying
this, as no other time functions on my PC go back that far, though I double-checked it on a Linux
server, and that returned the same day.