Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atomicdotdev/atomic
/ parse_rfc3339
Function
parse_rfc3339
atomic-agent/src/hooks/timestamp.rs:62–66 ·
view source on GitHub ↗
(value: &Value)
Source
from the content-addressed store, hash-verified
60
}
61
62
fn parse_rfc3339(value: &Value) -> Option<DateTime<Utc>> {
63
DateTime::parse_from_rfc3339(value.as_str()?)
64
.ok()
65
.map(|timestamp| timestamp.with_timezone(&Utc))
66
}
Callers
1
parse
Method · 0.85
Calls
2
ok
Method · 0.45
as_str
Method · 0.45
Tested by
no test coverage detected