jayeshchavda/alltime
Composer 安装命令:
composer require jayeshchavda/alltime
包简介
This is a library which fetches current time as per request from WorldTimeApi.
README 文档
README
Created for trial of composer packaging
This library will fetch you current time for any selected time zone. You just have to initialize the class and call the methods with proper parameters.
Initializing the library: 1 - Add "use jayeshchavda\alltime\AllTime" at the begining of the PHP file. 2 - Initilize the class using "$var = new AllTime()". 3 - Call any method on $var from the given below as per your need.
Method 1: getTimeZoneList(); Description: NO PARAMETERS REQUIRED. This methods will give you the entire list of time zones available so that you can choose and pass that to the other methods that feches its timezone.
Method 2: getCurrentTimeByZone(); Description: Parameter - The name of the timezone. Type: Parameter should be in the form of string. Details: This methods will give you the object of current time for your requested zone. You can access it using $yourObjectVar->datetime;
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2020-07-11