[][src]Struct last_git_commit::LGCDate

pub struct LGCDate { /* fields omitted */ }

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]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]