Skip to content

Releases: wapmorgan/TimeParser

2.0.0: Api change

27 Apr 16:18

Choose a tag to compare

  • Now TimeParser is not a static class - you need to create an instance of parser.
    $parser = new wapmorgan\TimeParser\TimeParser('english');
    and then parse any number of strings.
    $datetime = $parser->parse(fgets(STDIN));
  • For one-call parsing there is a static method parseString($string, $languages = 'all', $allowAlphabeticUnits = false, $falseWhenNotChanged = false): DateTimeImmutable.
  • Added tests.

1.0.2: Fixed bug in string preparation

21 Feb 15:33

Choose a tag to compare

  • Fixed bug in string preparation

1.0.1: Absolute date

01 Feb 08:04

Choose a tag to compare

  • Added absoulte date rule (15 december or 15 december 1980, 15 декабря или 15 декабря 1977 года)
  • Added string preparation before scan (trimming extra spaces, encoding issues and lowercasing).

1.0

07 Nov 20:48

Choose a tag to compare

1.0

Initial release.