natural-date-rs

Crates.ionatural-date-rs
lib.rsnatural-date-rs
version0.3.0
created_at2025-10-15 23:37:31.209195+00
updated_at2025-12-27 01:01:17.171489+00
descriptionA parser to convert natural language date and time specifications into DateTime.
homepage
repositoryhttps://github.com/berkus/natural-date-rs
max_upload_size
id1885121
size75,355
engineer (github:cysharp:engineer)

documentation

README

Natural Date Parser

A parser to convert natural language date and time specification into a DateTime.

The parser recognizes a variety of phrases related to dates and times, such as "next Monday," "tomorrow at 5 PM," or "3 weeks from now." This parser converts these expressions into structured DateTime objects, making them usable in scheduling applications, reminders, or other time-based software.

  • Simple Relative Dates: "today," "tomorrow," "yesterday."
  • Day of the Week Expressions: "next Monday," "last Friday."
  • Complex Relative Time Expressions: "in 3 days," "2 weeks from now," "4 months ago."
  • Combined Date and Time Expressions: "next Thursday at 10 AM," "tomorrow at 5:30 PM."
Commit count: 0

cargo fmt