dateparser 0.0.2

Library for parsing randomly formated date strings


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

#Date Parser

Docs

A port of the Python Date Util date parser. This is currently beta quality software; there are a lot of GC allocations and a lot of date formats aren't supported yet. Also, of the 148 applicable tests that were translated from date util, 49 are failing.

This module offers a generic date/time string parser which is able to parse most known formats to represent a date and/or time. This module attempts to be forgiving with regards to unlikely input formats, returning a SysTime object even for dates which are ambiguous.

##Install With Dub

{
    ...
    "dependencies": {
        "dateparser": "~master"
    }
}

Simple Example

View the docs for more.

import std.datetime;
import dateparser;

void main()
{
    assert(parse("2003-09-25") == SysTime(DateTime(2003, 9, 25)));
}
Authors:
  • Jack Stouffer
Dependencies:
none
Versions:
3.0.4 2021-Aug-04
3.0.3 2020-Oct-02
3.0.2 2020-Aug-31
3.0.1 2019-Jan-28
3.0.0 2016-Oct-10
Show all 25 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 27 downloads this month

  • 140698 downloads total

Score:
1.9
Short URL:
dateparser.dub.pm