【文件属性】:
文件名称:SxDateTime:DateTime类
文件大小:19KB
文件格式:ZIP
更新时间:2021-02-12 08:27:29
PHP
SxDateTime
PHP类管理DateTime并查找两个日期之间的差异
安装
从获取或克隆代码
将文件“ src / SteedX / SxDateTime.php”包含到您的代码中
使用SteedX \ SxDateTime;
通过作曲家安装
@去做
用法
use SteedX \ SxDateTime
创建日期时间对象
$ date = new SxDateTime ([string $ dateTime = null [,string $ timeZone = null ]]);
参量
dateString :字符串的有效格式为
输入给定时区中的当前时间为null
timeZone :时区,作为受支持的字符串列表
如果忽略时区或为null,则将使用UTC时区。
$ sxInterval = $ date -> difference ([ $ newDate [,string
【文件预览】:
SxDateTime-main
----src()
--------SteedX()
----demo()
--------testCase1.php(1KB)
--------myAge.php(440B)
--------displayDifference.php(998B)
----LICENSE(34KB)
----README.md(3KB)
----tests()
--------SxDateTimeTest.php(3KB)