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. The following formats are supported:, (*1)

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., (*2)

PHP Version Require Latest Stable Version License
Unit Tests Static Code Analysis, (*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

Licence

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

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