lightspeed_core 0.64.3

LightSpeed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use chrono::prelude::Local;
use uuid::Uuid;

/// Returns the number of non-leap seconds since January 1, 1970 0:00:00 UTC
/// (aka "UNIX timestamp").
#[inline]
pub fn current_epoch_seconds() -> i64 {
    Local::now().timestamp()
}

#[inline]
pub fn new_hyphenated_uuid() -> String {
    Uuid::new_v4().as_hyphenated().to_string()
}