The DateTimeInterface interface
2024-03-29T06:08:39+00:00
tag:php.net,2009-10-13:/manual/en/file/class.datetimeinterface
PhD
PHP Documentation Group
DateTimeInterface::diff -- 返回两个 DateTime 之间的差值
2024-03-29T06:08:39+00:00
tag:php.net,2009-10-13:/manual/en/datetime.diff
DateTimeInterface::format -- 按照指定格式返回格式化后的日期
2024-03-29T06:08:39+00:00
tag:php.net,2009-10-13:/manual/en/datetime.format
DateTimeInterface::getOffset -- 返回时差
2024-03-29T06:08:39+00:00
tag:php.net,2009-10-13:/manual/en/datetime.getoffset
DateTimeInterface::getTimestamp -- 获取 Unix 时间戳
2024-03-29T06:08:39+00:00
tag:php.net,2009-10-13:/manual/en/datetime.gettimestamp
DateTimeInterface::getTimezone -- 返回相对于指定 DateTime 的时区
2024-03-29T06:08:39+00:00
tag:php.net,2009-10-13:/manual/en/datetime.gettimezone
DateTime::__wakeup -- The __wakeup handler
2024-03-29T06:08:39+00:00
tag:php.net,2009-10-13:/manual/en/datetime.wakeup