tsmsogn / date_japanese_era
There is no license information available for the latest version (0.0.1) of this package.
0.0.1
2018-12-29 09:31 UTC
Requires
- php: >=5.3
Requires (Dev)
- phpunit/phpunit: ^4.8|^5.7
This package is auto-updated.
Last update: 2024-10-29 05:46:44 UTC
README
Installation
composer install tsmsogn/date_japanese_era
Usage
<?php $era = new \Date_Japanese_Era\Date_Japanese_Era(array(2009, 7, 11)); echo $era->name; // 平成 echo $era->gengou; // name のエイリアス echo $era->year; // 21 echo $era->nameAscii; // heisei
<?php $era = new \Date_Japanese_Era\Date_Japanese_Era(array('平成', 21)); echo $era->gregorianYear; // 2009