Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

bronto/date-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bronto\Date

This project is no longer maintained and should be used for historical purposes only.

Bronto\Date's goal is provide an intuitive and easy-to-use API for date/datetime work in PHP. Dates, datetimes, time zones and timestamps can be confusing and difficult to work with, so it is important for any API dealing with these topics to be clear and well documented. Bronto\Date's api is modeled after Joda-Time in java and adapted for PHP.

Prerequisites

Bronto\Date requires PHP 5.3.0. This library has been tested with PHP versions 5.3.6 and 5.3.23, although it may work fine with earlier versions. Bronto\Date uses PHP's \DateTime and \DateTimeZone classes under the hood and is vulnerable to some of those classes' bugs.

The unit tests have been run with PHPUnit 3.7.9 and Mockery 0.8.0, but earlier versions may work.

Known Issues / Workarounds

Bronto\Date uses PHP's \DateTime and \DateTimeZone classes under the hood and is vulnerable to some of those classes' bugs. Bronto\Date works around the following bugs/deficiencies:

Future Work

  • Locale support - this would allow for parse and toString to understand and output other languages. Ideally, this would allow for ambiguous time zone abbreviations to be resolved reliably.
  • Date, time, duration, interval and period classes