[−][src]Struct last_git_commit::LGCDate
Date
Trait Implementations
impl Date for LGCDate
[src]
fn utc_string(&self) -> String
[src]
A date and time formatted string.
Format: "%Y-%m-%d %H:%M:%S
Examples
extern crate last_git_commit; use last_git_commit::{LastGitCommit, Date}; let utc_string = LastGitCommit::new(None, None).unwrap().date.utc_string(); println!("UTC String: {}", utc_string);
fn timestamp(&self) -> i64
[src]
Unix Timestamp
Examples
extern crate last_git_commit; use last_git_commit::{LastGitCommit, Date}; let timestamp = LastGitCommit::new(None, None).unwrap().date.timestamp(); println!("Timestamp: {}", timestamp);
Auto Trait Implementations
impl Unpin for LGCDate
impl Sync for LGCDate
impl Send for LGCDate
impl RefUnwindSafe for LGCDate
impl UnwindSafe for LGCDate
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,