fix: parsing history dates

This commit is contained in:
ThetaDev 2025-01-18 05:51:41 +01:00
parent 32fda234e4
commit af7dc10163
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
10 changed files with 2084 additions and 429 deletions

View file

@ -13,6 +13,13 @@ pub struct DictEntry {
/// Should the language be parsed by character instead of by word?
/// (e.g. Chinese/Japanese)
pub by_char: bool,
/// True if the month has to be parsed before the day
///
/// Examples:
///
/// - 03.01.2020 => DMY => false
/// - 01/03/2020 => MDY => true
pub month_before_day: bool,
/// Tokens for parsing timeago strings.
///
/// Format: Parsed token -> \[Quantity\] Identifier