pub struct YmdHms { /* private fields */ }Expand description
Combined Gregorian date + wall time with subsecond precision.
Implementations§
Source§impl YmdHms
impl YmdHms
pub const fn yr(&self) -> i64
pub const fn mo(&self) -> u8
pub const fn day(&self) -> u8
pub const fn hr(&self) -> u8
pub const fn min(&self) -> u8
pub const fn sec(&self) -> u8
pub const fn attos(&self) -> u64
Sourcepub const fn unix_attosec(&self) -> i128
pub const fn unix_attosec(&self) -> i128
Attoseconds since 1970-01-01 midnight, on whatever time scale the object was created on.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for YmdHms
impl<'de> Deserialize<'de> for YmdHms
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Tsify for YmdHms
impl Tsify for YmdHms
const DECL: &'static str = "/**\n * Combined Gregorian date + wall time with subsecond precision.\n */\nexport interface YmdHms {\n yr: number;\n mo: number;\n day: number;\n hr: number;\n min: number;\n sec: number;\n attos: number;\n unix_attosec: number;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
impl Copy for YmdHms
impl Eq for YmdHms
impl StructuralPartialEq for YmdHms
Auto Trait Implementations§
impl Freeze for YmdHms
impl RefUnwindSafe for YmdHms
impl Send for YmdHms
impl Sync for YmdHms
impl Unpin for YmdHms
impl UnsafeUnpin for YmdHms
impl UnwindSafe for YmdHms
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.