MCPcopy Create free account
hub / github.com/PoiScript/orgize / warning_unit

Method warning_unit

src/ast/timestamp.rs:167–169  ·  view source on GitHub ↗

```rust use orgize::{Org, ast::{Timestamp, TimeUnit}}; let t = Org::parse("[2000-01-01 -3y]").first_node:: ().unwrap(); assert_eq!(t.warning_unit(), Some(TimeUnit::Year)); let t = Org::parse("[2000-01-01]--[2000-01-02 -5w]").first_node:: ().unwrap(); assert_eq!(t.warning_unit(), Some(TimeUnit::Week)); let t = Org::parse("[2000-01-01 01:00-02:00 --10m]").first_node::

(&self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

nth_delayMethod · 0.80

Tested by

no test coverage detected