pub struct Timestamp {
pub require: bool,
pub field: String,
pub mode: String,
pub title: String,
pub def: f64,
pub dec: i32,
}
Fields§
§require: bool
§field: String
§mode: String
§title: String
§def: f64
§dec: i32
Implementations§
source§impl Timestamp
impl Timestamp
pub fn new(require: bool, field: &str, title: &str, dec: i32, default: f64) -> Self
sourcepub fn timestamp_ms() -> i64
pub fn timestamp_ms() -> i64
毫秒 13位
sourcepub fn timestamp_μs() -> i64
pub fn timestamp_μs() -> i64
微秒 16位
sourcepub fn timestamp_ns() -> i64
pub fn timestamp_ns() -> i64
纳秒 19位
sourcepub fn date_to_timestamp(date: &str) -> i64
pub fn date_to_timestamp(date: &str) -> i64
日期转时间戳
sourcepub fn datetime_to_timestamp(datetime: &str) -> i64
pub fn datetime_to_timestamp(datetime: &str) -> i64
日期时间转时间戳