2017 © Pedro Peláez
 

library dateparser

Parser for date strings

image

fabiang/dateparser

Parser for date strings

  • Friday, July 28, 2017
  • by fabiang
  • Repository
  • 1 Watchers
  • 0 Stars
  • 68 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

fabiang/dateparser

Date parsing library supporting the full format RFC3339., (*1)

Note: The Api is considered unstable, (*2)

Latest Stable Version License Build Status, (*3)

Installation

Run Composer with:, (*4)

composer require fabiang/dateparser

Usage

Parsing an RFC3339 datetime string:, (*5)

use Fabiang\Dateparser\RFC3339;

$parser = new RFC3339();
$datetime = $parser->parse('2017-07-25T18:37:40+02:00'); // DateTime object

The following formats are supported:, (*6)

2017-07-25T18:37:40
2017-07-25T18:37:40.1234567890
2017-07-25T18:37:40.1234567890Z
2017-07-25T18:37:40Z
2017-07-25T18:37:40.1234567890+0200
2017-07-25T18:37:40+0200
2017-07-25T18:37:40.1234567890-0400
2017-07-25T18:37:40-0400
2017-07-25T18:37:40.1234567890+02:00
2017-07-25T18:37:40+02:00
2017-07-25T18:37:40.1234567890-04:00

Note: PHP only supports 6 digit microseconds. This library cut the last digits off, (*7)

Credits

Thanks to the Hoa Project for their nice Hoa\Compiler package., (*8)

Licence

BSD-2-Clause. See the LICENSE.md., (*9)

The Versions

28/07 2017

dev-master

9999999-dev

Parser for date strings

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

28/07 2017

0.2.0

0.2.0.0

Parser for date strings

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

28/07 2017

0.1.1

0.1.1.0

Parser for date strings

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

26/07 2017

0.1.0

0.1.0.0

Parser for date strings

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires