#date-parser #date-time #multi-language #time-parser #date-parsing #multi-lang

date_time_parser_multi_language

date_time_parser_multi_language is a package designed to extract and interpret date information from strings across multiple languages

2 unstable releases

new 0.2.0 Mar 24, 2025
0.1.0 Mar 24, 2025

#12 in #multi-language

24 downloads per month

MIT license

50KB
867 lines

Date Time Parser for Multiple Languages

Welcome to the date_time_parser_multi_language package. ☺️
This package can be used to parse date information out of strings.
The title is misleading at the moment, because it doesn't support time parsing. For now!

Date information can be parsed out of natural language strings like Do something tomorrow, or Remind me in three weeks.
Stuff like that, what you may need when you create a todo app or so.

How to Use the Package

Before you can start, you have to determine some things.

  1. Which language do you want to parse.
    Check Supported Languages to check if the language you need is implemented.
    If the language is missing, feel free to extend the package.

  2. Which date format you want to use.
    In the US, it is common to use MM.DD.YYYY, in Europe it is DD.MM.YYYY.
    This setting influences the parsing heavily.

Below, you will find a basic example.

include::examples/en.rs[]

In the examples directory you can find more examples.
Alternatively, you can check out the test-client, where you can test the parsing too.

Supported Languages

Language Code State
English EN Experimental

Dependencies

~3–4.5MB
~72K SLoC