date_time_parser_multi_language

Crates.iodate_time_parser_multi_language
lib.rsdate_time_parser_multi_language
version0.2.0
sourcesrc
created_at2025-03-24 20:50:46.735016+00
updated_at2025-03-24 20:58:38.115028+00
descriptiondate_time_parser_multi_language is a package designed to extract and interpret date information from strings across multiple languages.
homepagehttps://github.com/Outlawraspberry/date_time_parser_mutli_language
repository
max_upload_size
id1604383
size60,928
Benjamin Krause aka. Weltii (Weltii)

documentation

README

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
Commit count: 0

cargo fmt