MCPcopy Create free account
hub / github.com/cosdata/cosdata / get_current_timestamp

Function get_current_timestamp

src/models/crypto.rs:124–129  ·  view source on GitHub ↗

Retrieves current Unix timestamp for token generation

()

Source from the content-addressed store, hash-verified

122
123// Retrieves current Unix timestamp for token generation
124pub fn get_current_timestamp() -> u64 {
125 SystemTime::now()
126 .duration_since(UNIX_EPOCH)
127 .unwrap()
128 .as_secs()
129}
130
131// Creates a new session with time-based access token
132// Flow:

Callers 2

create_sessionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected