Struct git2::Time [−][src]
pub struct Time { /* fields omitted */ }
Time in a signature
Methods
impl Time
[src]
impl Time
pub fn new(time: i64, offset: i32) -> Time
[src]
pub fn new(time: i64, offset: i32) -> Time
Creates a new time structure from its components.
pub fn seconds(&self) -> i64
[src]
pub fn seconds(&self) -> i64
Return the time, in seconds, from epoch
pub fn offset_minutes(&self) -> i32
[src]
pub fn offset_minutes(&self) -> i32
Return the timezone offset, in minutes
pub fn sign(&self) -> char
[src]
pub fn sign(&self) -> char
Return whether the offset was positive or negative. Primarily useful in case the offset is specified as a negative zero.
Trait Implementations
impl Copy for Time
[src]
impl Copy for Time
impl Clone for Time
[src]
impl Clone for Time
fn clone(&self) -> Time
[src]
fn clone(&self) -> Time
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Eq for Time
[src]
impl Eq for Time
impl PartialEq for Time
[src]
impl PartialEq for Time
fn eq(&self, other: &Time) -> bool
[src]
fn eq(&self, other: &Time) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Time) -> bool
[src]
fn ne(&self, other: &Time) -> bool
This method tests for !=
.
impl PartialOrd for Time
[src]
impl PartialOrd for Time
fn partial_cmp(&self, other: &Time) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Time) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Time
[src]
impl Ord for Time
fn cmp(&self, other: &Time) -> Ordering
[src]
fn cmp(&self, other: &Time) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more