[−][src]Struct circadian_time::Circadian
The Circadian timezone. This timezone aligns to dawn instead of noon. At dawn the circadian time will be 00:00.
Methods
impl<P: Positioned> Circadian<P>
[src]
Trait Implementations
impl<P: Clone + Positioned> Clone for Circadian<P>
[src]
impl<P: Debug + Positioned> Debug for Circadian<P>
[src]
impl<P: Positioned> Display for Circadian<P>
[src]
impl<P: Positioned> TimeZone for Circadian<P>
[src]
type Offset = Circadian<P>
An associated offset type. This type is used to store the actual offset in date and time types. The original TimeZone
value can be recovered via TimeZone::from_offset
. Read more
fn from_offset(offset: &Circadian<P>) -> Self
[src]
fn offset_from_local_date(&self, local: &NaiveDate) -> LocalResult<Circadian<P>>
[src]
fn offset_from_local_datetime(
&self,
local: &NaiveDateTime
) -> LocalResult<Circadian<P>>
[src]
&self,
local: &NaiveDateTime
) -> LocalResult<Circadian<P>>
fn offset_from_utc_date(&self, utc: &NaiveDate) -> Circadian<P>
[src]
fn offset_from_utc_datetime(&self, utc: &NaiveDateTime) -> Circadian<P>
[src]
fn ymd(&self, year: i32, month: u32, day: u32) -> Date<Self>
[src]
fn ymd_opt(&self, year: i32, month: u32, day: u32) -> LocalResult<Date<Self>>
[src]
fn yo(&self, year: i32, ordinal: u32) -> Date<Self>
[src]
fn yo_opt(&self, year: i32, ordinal: u32) -> LocalResult<Date<Self>>
[src]
fn isoywd(&self, year: i32, week: u32, weekday: Weekday) -> Date<Self>
[src]
fn isoywd_opt(
&self,
year: i32,
week: u32,
weekday: Weekday
) -> LocalResult<Date<Self>>
[src]
&self,
year: i32,
week: u32,
weekday: Weekday
) -> LocalResult<Date<Self>>
fn timestamp(&self, secs: i64, nsecs: u32) -> DateTime<Self>
[src]
fn timestamp_opt(&self, secs: i64, nsecs: u32) -> LocalResult<DateTime<Self>>
[src]
fn timestamp_millis(&self, millis: i64) -> DateTime<Self>
[src]
fn timestamp_millis_opt(&self, millis: i64) -> LocalResult<DateTime<Self>>
[src]
fn timestamp_nanos(&self, nanos: i64) -> DateTime<Self>
[src]
fn datetime_from_str(
&self,
s: &str,
fmt: &str
) -> Result<DateTime<Self>, ParseError>
[src]
&self,
s: &str,
fmt: &str
) -> Result<DateTime<Self>, ParseError>
fn from_local_date(&self, local: &NaiveDate) -> LocalResult<Date<Self>>
[src]
fn from_local_datetime(
&self,
local: &NaiveDateTime
) -> LocalResult<DateTime<Self>>
[src]
&self,
local: &NaiveDateTime
) -> LocalResult<DateTime<Self>>
fn from_utc_date(&self, utc: &NaiveDate) -> Date<Self>
[src]
fn from_utc_datetime(&self, utc: &NaiveDateTime) -> DateTime<Self>
[src]
impl<P: Positioned> Offset for Circadian<P>
[src]
fn fix(&self) -> FixedOffset
[src]
Auto Trait Implementations
impl<P> Send for Circadian<P> where
P: Send,
P: Send,
impl<P> Sync for Circadian<P> where
P: Sync,
P: Sync,
impl<P> Unpin for Circadian<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for Circadian<P> where
P: UnwindSafe,
P: UnwindSafe,
impl<P> RefUnwindSafe for Circadian<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
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> 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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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,