pub struct Offset { /* private fields */ }
Implementations§
Source§impl Offset
impl Offset
pub fn utc() -> Self
pub fn of_seconds(seconds: i32) -> Result<Self, Error>
pub fn of_hours_and_minutes(hours: i8, minutes: i8) -> Result<Self, Error>
pub fn transform_date(self, local: LocalDateTime) -> OffsetDateTime
pub fn is_utc(self) -> bool
pub fn is_negative(self) -> bool
pub fn hours(self) -> i8
pub fn minutes(self) -> i8
pub fn seconds(self) -> i8
Trait Implementations§
impl Copy for Offset
impl StructuralPartialEq for Offset
Auto Trait Implementations§
impl Freeze for Offset
impl RefUnwindSafe for Offset
impl Send for Offset
impl Sync for Offset
impl Unpin for Offset
impl UnwindSafe for Offset
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)