MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / now_timestamp

Function now_timestamp

atomic-repository/src/change_source/scan.rs:646–654  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

644}
645
646pub fn now_timestamp() -> FileIndexTimestamp {
647 let duration = std::time::SystemTime::now()
648 .duration_since(std::time::UNIX_EPOCH)
649 .unwrap_or_default();
650 FileIndexTimestamp {
651 seconds: duration.as_secs() as i64,
652 nanoseconds: duration.subsec_nanos(),
653 }
654}
655
656fn scan_token(candidates: &[ChangeCandidate]) -> ChangeSourceToken {
657 let mut bytes = b"atomic.scan-token-v1\0".to_vec();

Calls

no outgoing calls