bfolliot / date
该包已被 废弃 且不再维护。未建议替代包。
该包最新版本(1.1.2)没有可用的许可证信息。
为PHP中的日期操作提供额外功能
1.1.2
2015-05-28 11:28 UTC
Requires
- php: >=5.3
This package is not auto-updated.
Last update: 2020-09-04 20:26:37 UTC
README
为PHP中的日期操作提供额外功能
BFolliot\Date\DateInterval
public string toSpec ()
返回间隔指定。
BFolliot\Date\DateTime
public string strftime(string $format)
根据区域设置格式化。
见 https://php.ac.cn/manual/en/function.strftime.php
public static DateTime DateTime::createFromFormat ( string $format , string $time [, DateTimeZone $timezone ] )
返回根据指定格式格式化后的新DateTime对象。