gpslab / date-bundle
DateTime工具
v0.2.1
2017-12-07 14:31 UTC
Requires
- php: >=5.4.0
Requires (Dev)
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: ^1.0
- scrutinizer/ocular: ~1.3
- symfony/dependency-injection: ~2.3|~3.0
- symfony/expression-language: ~2.3|~3.0
- symfony/http-kernel: ~2.3|~3.0
- symfony/translation: ~2.3|~3.0
- twig/twig: ^1.12|^2.0
This package is auto-updated.
Last update: 2024-09-15 19:51:32 UTC
README
DateTime和DateTimeZone工具
安装
使用Composer非常简单,运行
composer require gpslab/date-bundle
将GpsLabDateBundle添加到您的应用程序内核
// app/AppKernel.php public function registerBundles() { return array( // ... new GpsLab\Bundle\DateBundle\GpsLabDateBundle(), // ... ); }
配置
gpslab_date: # Is not required # As a default used timezone from date_default_timezone_get() time_zone: 'Europe/Moscow' # HTTP Cookie parameters for store user timezone cookie: # You can disable use cookie for store user timezone used: true # HTTP Cookie variable names # It's a default values name: '_time_zone_name' offset: '_time_zone_offset'
文档
许可证
此捆绑包采用MIT许可证。请参阅文件中的完整许可证:LICENSE