php的date

将服务器的时间格式化

语法: string date(string format, int [timestamp]);

返回值: 字符串

函数种类: 时间日期

返回值的字符串依配置的格式来决定。若有传入时间戳记值,则将时间戳记格式化返回;若无传入时间戳记值,则将目前服务器的时间格式化返回。要将日期转为其它的语系格式,应使用setlocale() 及 strftime() 二个函数。字符串格式化的选项如下:

http://php.freehostingguru.com/function.php-date.php

原文地址:https://www.cnblogs.com/seasonsstory/p/3123381.html