oa::Datetime

UTC human-readable date/time. For log display and file naming only — never for consensus or deterministic math.

StRust public API

Declaration

pub struct Datetime { /* private fields */ }
Public Rust declaration.

Public Methods

pub const fn as_unix_secs(self) -> i64
fn clone(&self) -> Datetime
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &Datetime) -> bool

Associated Functions

pub fn now() -> Self
pub const fn from_unix_secs(secs: i64) -> Self

Public Method Documentation

pub const fn as_unix_secs( self ) -> i64
No public source comment is attached to this declaration.
fn clone( &self ) -> Datetime
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &Datetime ) -> bool
No public source comment is attached to this declaration.
pub fn now() -> Self
No public source comment is attached to this declaration.
pub const fn from_unix_secs( secs: i64 ) -> Self
No public source comment is attached to this declaration.