MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / value_to_timestamp_ms

Function value_to_timestamp_ms

nodedb-query/src/functions/datetime.rs:223–229  ·  view source on GitHub ↗
(v: &Value)

Source from the content-addressed store, hash-verified

221}
222
223fn value_to_timestamp_ms(v: &Value) -> Option<i64> {
224 match v {
225 Value::Integer(n) => Some(*n),
226 Value::Float(f) => Some(*f as i64),
227 _ => None,
228 }
229}
230
231/// Parse an interval string like "1h", "5m", "1 hour", "30 seconds" to ms.
232///

Callers 1

eval_time_bucketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected