Skip to main content

parse_org_timestamp

Function parse_org_timestamp 

Source
pub fn parse_org_timestamp(
    ts: &str,
    mappings: Option<&[(&str, &str)]>,
) -> Option<ParsedTimestamp>
Expand description

Parse a single org-mode timestamp like <2024-12-05 Thu 10:00 +1d> or <2024-12-05>--<2024-12-06>, optionally normalizing localized weekday names.

Repeater and warning-period cookies are extracted by independent passes on the bracket body, so they may appear in either order (<... +1y -3d> or <... -3d +1y>), matching upstream Org-mode’s position-agnostic handling in org-get-wdays.