note 18644 added to ref.datetime

From: Date: Wed, 30 Jan 2002 11:26:15 +0000
Subject: note 18644 added to ref.datetime
Groups: php.notes 
Request: Send a blank email to php-notes+get-26028@lists.php.net to get a copy of this message
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. -- http://www.php.net/manual/en/ref.datetime.php http://master.php.net/manage/user-notes.php?action=edit+18644 http://master.php.net/manage/user-notes.php?action=delete+18644 http://master.php.net/manage/user-notes.php?action=reject+18644

« previous php.notes (#26028) next »