|
|
 |
XVIII. 时间日期函数库
可以用这些函数得到 PHP 所运行的服务器的日期和时间。可以用这些函数将日期和时间以很多不同方式格式化输出。
注:
请留意这些函数依赖于服务器的地区设置。确认在使用这些函数时考虑到了夏令时的设置和闰年。
这些函数作为 PHP 核心的一部分,无需被安装即可使用。
25-Apr-2000 09:44
Regarding the postings regarding MySQL timestamps, please be aware that
there are several MySQL date and time types, as documented at
http://www.mysql.com/Manual_chapter/manual_Reference.html#Date_and_time_types
So,
in reference to the above posts, nic_lee's algorhythm works on the MySQL
TIMESTAMP type, while jmat's function works on the MySQL DATETIME type --
they are NOT the same!
| |