Struct simpledateformat::SimpleDateFormat
source · pub struct SimpleDateFormat { /* private fields */ }
Expand description
Format struct, parse format and format date
Implementations§
source§impl SimpleDateFormat
impl SimpleDateFormat
sourcepub fn new(f: &str) -> Result<SimpleDateFormat, ParseError>
pub fn new(f: &str) -> Result<SimpleDateFormat, ParseError>
Create format from string
sourcepub fn new_with_out_err(f: &str) -> SimpleDateFormat
pub fn new_with_out_err(f: &str) -> SimpleDateFormat
Create format from string with out error
pub fn format_local_now(&self) -> String
pub fn format_utc_now(&self) -> String
pub fn format_utc(&self, time: SystemTime) -> String
pub fn format_local(&self, time: SystemTime) -> String
Trait Implementations§
source§impl Debug for SimpleDateFormat
impl Debug for SimpleDateFormat
Auto Trait Implementations§
impl RefUnwindSafe for SimpleDateFormat
impl Send for SimpleDateFormat
impl Sync for SimpleDateFormat
impl Unpin for SimpleDateFormat
impl UnwindSafe for SimpleDateFormat
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