[−][src]Struct fantasy_util::time::system_time::SystemLocalTime
Implementations
impl SystemLocalTime[src]
为了美观获取当前时间的包装实现
pub fn unix_nanos() -> u128[src]
获取当前的unix纳秒时间
Example
use fantasy_util::time::system_time::SystemLocalTime; let nanos:u128 = SystemLocalTime::unix_nanos();
pub fn unix_micros() -> u128[src]
获取当前的unix微秒时间
Example
use fantasy_util::time::system_time::SystemLocalTime; let micros:u128 = SystemLocalTime::unix_micros();
pub fn unix_mills() -> u64[src]
获取当前的unix毫秒时间
Example
use fantasy_util::time::system_time::SystemLocalTime; let mills:u64 = SystemLocalTime::unix_mills();
pub fn unix_secs() -> u64[src]
获取当前的unix秒时间
Example
use fantasy_util::time::system_time::SystemLocalTime; let mills:u64 = SystemLocalTime::unix_secs();
Auto Trait Implementations
impl RefUnwindSafe for SystemLocalTime
impl Send for SystemLocalTime
impl Sync for SystemLocalTime
impl Unpin for SystemLocalTime
impl UnwindSafe for SystemLocalTime
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,