#[repr(C)]pub struct SDL_DateTime {
pub year: c_int,
pub month: c_int,
pub day: c_int,
pub hour: c_int,
pub minute: c_int,
pub second: c_int,
pub nanosecond: c_int,
pub day_of_week: c_int,
pub utc_offset: c_int,
}Expand description
A structure holding a calendar date and time broken down into its components.
§Availability
This struct is available since SDL 3.2.0.
Fields§
§year: c_intYear
month: c_intMonth [01-12]
day: c_intDay of the month [01-31]
hour: c_intHour [0-23]
minute: c_intMinute [0-59]
second: c_intSeconds [0-60]
nanosecond: c_intNanoseconds [0-999999999]
day_of_week: c_intDay of the week [0-6] (0 being Sunday)
utc_offset: c_intSeconds east of UTC
Trait Implementations§
Source§impl Clone for SDL_DateTime
impl Clone for SDL_DateTime
Source§fn clone(&self) -> SDL_DateTime
fn clone(&self) -> SDL_DateTime
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SDL_DateTime
impl Debug for SDL_DateTime
Source§impl Default for SDL_DateTime
impl Default for SDL_DateTime
Source§fn default() -> SDL_DateTime
fn default() -> SDL_DateTime
Returns the “default value” for a type. Read more
Source§impl Hash for SDL_DateTime
impl Hash for SDL_DateTime
Source§impl PartialEq for SDL_DateTime
impl PartialEq for SDL_DateTime
impl Copy for SDL_DateTime
impl Eq for SDL_DateTime
impl StructuralPartialEq for SDL_DateTime
Auto Trait Implementations§
impl Freeze for SDL_DateTime
impl RefUnwindSafe for SDL_DateTime
impl Send for SDL_DateTime
impl Sync for SDL_DateTime
impl Unpin for SDL_DateTime
impl UnwindSafe for SDL_DateTime
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