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

Installs: 26

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/hvanoch/dateintervalparser

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

This package is not auto-updated.

Last update: 2025-10-12 00:41:39 UTC


README

Parses a string input

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