pub struct Date(/* private fields */);
Implementations§
Source§impl Date
impl Date
pub fn new( year: i32, month: i32, day: i32, hour: i32, minute: i32, second: i32, ) -> Date
pub fn from_now(offset_seconds: i32) -> Date
pub fn from_string(date_string: &str) -> Option<Date>
pub fn from_time_t(when: c_long) -> Date
pub fn day(&mut self) -> i32
pub fn hour(&mut self) -> i32
pub fn minute(&mut self) -> i32
pub fn month(&mut self) -> i32
pub fn offset(&mut self) -> i32
pub fn second(&mut self) -> i32
pub fn utc(&mut self) -> i32
pub fn year(&mut self) -> i32
pub fn is_past(&mut self) -> bool
pub fn to_string(&mut self, format: DateFormat) -> Option<GString>
pub fn to_time_t(&mut self) -> c_long
Trait Implementations§
Source§impl Ord for Date
impl Ord for Date
Source§impl PartialOrd for Date
impl PartialOrd for Date
Source§impl StaticType for Date
impl StaticType for Date
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for Date
impl StructuralPartialEq for Date
Auto Trait Implementations§
impl Freeze for Date
impl RefUnwindSafe for Date
impl !Send for Date
impl !Sync for Date
impl Unpin for Date
impl UnwindSafe for Date
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