[−][src]Struct emseries::DateTimeTz
This is a wrapper around date time objects, using timezones from the chroon-tz database and
providing string representation and parsing of the form "
The function here is to generate as close to unambiguous time/date strings, (for earth's gravitational frame of reference), as possible. Clumping together the time, offset from UTC, and the named time zone allows future parsers to know the exact interpretation of the time in the frame of reference of the original recording.
Methods
impl DateTimeTz
[src]
pub fn map<F>(&self, f: F) -> DateTimeTz where
F: FnOnce(DateTime<Tz>) -> DateTime<Tz>,
[src]
F: FnOnce(DateTime<Tz>) -> DateTime<Tz>,
pub fn to_string(&self) -> String
[src]
pub fn from_str(s: &str) -> Result<DateTimeTz, ParseError>
[src]
Trait Implementations
impl Clone for DateTimeTz
[src]
fn clone(&self) -> DateTimeTz
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Ord for DateTimeTz
[src]
fn cmp(&self, other: &DateTimeTz) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl PartialOrd<DateTimeTz> for DateTimeTz
[src]
fn partial_cmp(&self, other: &DateTimeTz) -> Option<Ordering>
[src]
fn lt(&self, other: &DateTimeTz) -> bool
[src]
fn le(&self, other: &DateTimeTz) -> bool
[src]
fn gt(&self, other: &DateTimeTz) -> bool
[src]
fn ge(&self, other: &DateTimeTz) -> bool
[src]
impl PartialEq<DateTimeTz> for DateTimeTz
[src]
fn eq(&self, other: &DateTimeTz) -> bool
[src]
fn ne(&self, other: &DateTimeTz) -> bool
[src]
impl Eq for DateTimeTz
[src]
impl Debug for DateTimeTz
[src]
impl Serialize for DateTimeTz
[src]
impl<'de> Deserialize<'de> for DateTimeTz
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
Auto Trait Implementations
impl Unpin for DateTimeTz
impl Sync for DateTimeTz
impl Send for DateTimeTz
impl UnwindSafe for DateTimeTz
impl RefUnwindSafe for DateTimeTz
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut 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,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,