hvanoch/dateintervalparser

There is no license information available for the latest version (dev-master) of this package.

Parses string input to DateInterval: 5w 3d 4h 12s, with support of aliases

dev-master / 1.1.x-dev 2016-07-08 19:43 UTC

This package is not auto-updated.

Last update: 2024-08-31 18:49:25 UTC


README

Parses a string input

$parser = new DateIntervalParser();
$dateInterval = $parser->parse('3w 2d 5h');