opendata-buffer 0.2.0

Stateless object storage buffer library for OpenData systems
Documentation
1
2
3
4
5
6
7
use std::time::{SystemTime, UNIX_EPOCH};

pub(crate) fn millis(time: SystemTime) -> i64 {
    time.duration_since(UNIX_EPOCH)
        .expect("system clock before UNIX epoch")
        .as_millis() as i64
}