adrenalinkin/doctrine-utc-date-time
最新稳定版本:v2.0.0
Composer 安装命令:
composer require adrenalinkin/doctrine-utc-date-time
包简介
Provides Doctrine DBAL date and time types for storing in UTC format into database
README 文档
README
Introduction
Component contains DBAL types for date and time and can be registered as Doctrine types. DBAL types provides
functionality for storing date and time into database in the UTC. List of the available types:
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this component:
composer require adrenalinkin/doctrine-utc-date-time
This command requires you to have Composer install globally.
Usage
For registration new Doctrine type use official instruction
How to Use Doctrine DBAL.
For registration new separate UTC types:
# app/config/config.yml doctrine: dbal: types: utc_date: Linkin\Component\DoctrineUTCDateTime\DBAL\Types\UtcDateType utc_datetime: Linkin\Component\DoctrineUTCDateTime\DBAL\Types\UtcDateTimeType utc_time: Linkin\Component\DoctrineUTCDateTime\DBAL\Types\UtcTimeType
Also, you can overwrite standard types:
# app/config/config.yml doctrine: dbal: types: date: Linkin\Component\DoctrineUTCDateTime\DBAL\Types\UtcDateType datetime: Linkin\Component\DoctrineUTCDateTime\DBAL\Types\UtcDateTimeType time: Linkin\Component\DoctrineUTCDateTime\DBAL\Types\UtcTimeType
License
统计信息
- 总下载量: 32.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-14