Struct chrono::offset::fixed::FixedOffset
[−]
[src]
pub struct FixedOffset { // some fields omitted }
The time zone with fixed offset, from UTC-23:59:59 to UTC+23:59:59.
Methods
impl FixedOffset
fn east(secs: i32) -> FixedOffset
Makes a new FixedOffset
for the Eastern Hemisphere with given timezone difference.
The negative secs
means the Western Hemisphere.
Panics on the out-of-bound secs
.
fn east_opt(secs: i32) -> Option<FixedOffset>
Makes a new FixedOffset
for the Eastern Hemisphere with given timezone difference.
The negative secs
means the Western Hemisphere.
Returns None
on the out-of-bound secs
.
fn west(secs: i32) -> FixedOffset
Makes a new FixedOffset
for the Western Hemisphere with given timezone difference.
The negative secs
means the Eastern Hemisphere.
Panics on the out-of-bound secs
.
fn west_opt(secs: i32) -> Option<FixedOffset>
Makes a new FixedOffset
for the Western Hemisphere with given timezone difference.
The negative secs
means the Eastern Hemisphere.
Returns None
on the out-of-bound secs
.