pub struct SystemLocalTime {}Implementations§
Source§impl SystemLocalTime
为了美观获取当前时间的包装实现
impl SystemLocalTime
为了美观获取当前时间的包装实现
Sourcepub fn unix_nanos() -> u128
pub fn unix_nanos() -> u128
获取当前的unix纳秒时间
§Usage
use fantasy_util::time::system_time::SystemLocalTime;
let nanos:u128 = SystemLocalTime::unix_nanos();Sourcepub fn unix_micros() -> u128
pub fn unix_micros() -> u128
获取当前的unix微秒时间
§Usage
use fantasy_util::time::system_time::SystemLocalTime;
let micros:u128 = SystemLocalTime::unix_micros();Sourcepub fn unix_mills() -> u64
pub fn unix_mills() -> u64
获取当前的unix毫秒时间
§Usage
use fantasy_util::time::system_time::SystemLocalTime;
let mills:u64 = SystemLocalTime::unix_mills();Auto Trait Implementations§
impl Freeze for SystemLocalTime
impl RefUnwindSafe for SystemLocalTime
impl Send for SystemLocalTime
impl Sync for SystemLocalTime
impl Unpin for SystemLocalTime
impl UnwindSafe for SystemLocalTime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more