radioactivehamster / temporal

PHP日期和时间实用程序库。

0.3.1 2016-02-17 17:48 UTC

This package is not auto-updated.

Last update: 2024-09-26 00:09:28 UTC


README

PHP日期和时间实用程序库。

Packagist Version GitHub license Build Status

安装

$ composer require radioactivehamster/temporal

使用

<?php

use Temporal;

// Returns an object representing the current month.
$month = Calendar::month();

// Returns an object representing the current week.
$week = Calendar::week();

// Returns an object representing the current day.
$day = Calendar::day();

许可

MIT许可证(Expat)。有关详细信息,请参阅许可证文件