Expand description
Time-range parsing in the user’s local timezone.
Mail ranges look backward from “now” (Direction::Past); calendar ranges look
forward (Direction::Future). Named ranges (today, this_week, …) and
explicit from/to bounds are always resolved against the caller-supplied
IANA timezone, then converted to UTC.
Enums§
- Direction
- Whether a bare
Ndrange (e.g.3d) looks backward fromnow(mail) or forward fromnow(calendar).
Functions§
- parse_
point - Parse a single timestamp: RFC 3339, a naive
YYYY-MM-DDTHH:MM:SSorYYYY-MM-DDTHH:MM(interpreted intz), or a bareYYYY-MM-DDdate (interpreted as local midnight, or the following local midnight whenend_of_dayis set, making the date inclusive). - parse_
range - Resolve a named range, an
Ndrange, or explicitfrom/tobounds into a(start, end)UTC pair.