fadoe/date 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fadoe/date

最新稳定版本:3.0.0

Composer 安装命令:

composer require fadoe/date

包简介

Library to handle PHP DateTime objects

README 文档

README

This library provides some classes for date handling in PHP.

Installation

Use composer to install this library:

composer.phar require fadoe/date

Usage

Compare

Compare is a class to compare \DateTime classes. You must create a instance with the \DateTime to compare against other \DateTime classes.

There are several compare methods:

constant compare strategy
Compare::GT_FROM_LT_TO date from < compare date < date to
Compare::GT_FROM_LTEQ_TO date from < compare date <= date to
Compare::GTEQ_FROM_LT_TO date from <= compare date < date to
Compare::GTEQ_FROM_LTEQ_TO date from <= compare date <= date to

DateRange

This class creates \DateTime classes between two dates.

DateTimeProvider

A class to give some \DateTime classes. Usefull for classes that need the current date for calculation. With this class you have a provider for dates and you can mock this in unit tests.

统计信息

  • 总下载量: 4.14k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-01-28