Skip to main content

take_timestamp

Function take_timestamp 

Source
pub fn take_timestamp(s: &str) -> Option<(&str, &str)>
Expand description

Consume one Org timestamp or timestamp range at the start of s.

Manual 8.1: active <>, inactive [], diary sexps <%%(...)>, time ranges on one stamp, and ranges of two stamps joined by --. Repeaters (+1w, ++1w, .+1w) and warnings (-2d, --2d) live inside the brackets, so the first closing delimiter is enough.