pub struct FilePathTimestamp {
pub year: i32,
pub month: i32,
pub day: i32,
pub hour: i32,
pub minute: i32,
pub second: i32,
}Expand description
A filesystem timestamp, which can represent when a file or folder was last accessed, modified, etc.
The values here derived from https://sdk.play.date/1.10.0/Inside%20Playdate.html#f-file.modtime.
Fields§
§year: i32The timestamp’s year.
month: i32The timestamp’s month within the year, from 1 to 12.
day: i32The timestamp’s day within the month, from 1 to 31.
hour: i32The timestamp’s hour within the day, from 0 to 23.
minute: i32The timestamp’s minute within the hour, from 0 to 59.
second: i32The timestamp’s seconds within the minute, normally from 0 to 59. Can be 60 on a leap second.
Trait Implementations§
Source§impl Clone for FilePathTimestamp
impl Clone for FilePathTimestamp
Source§fn clone(&self) -> FilePathTimestamp
fn clone(&self) -> FilePathTimestamp
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 FilePathTimestamp
impl Debug for FilePathTimestamp
Source§impl Hash for FilePathTimestamp
impl Hash for FilePathTimestamp
Source§impl Ord for FilePathTimestamp
impl Ord for FilePathTimestamp
Source§fn cmp(&self, other: &FilePathTimestamp) -> Ordering
fn cmp(&self, other: &FilePathTimestamp) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FilePathTimestamp
impl PartialEq for FilePathTimestamp
Source§impl PartialOrd for FilePathTimestamp
impl PartialOrd for FilePathTimestamp
impl Copy for FilePathTimestamp
impl Eq for FilePathTimestamp
impl StructuralPartialEq for FilePathTimestamp
Auto Trait Implementations§
impl Freeze for FilePathTimestamp
impl RefUnwindSafe for FilePathTimestamp
impl Send for FilePathTimestamp
impl Sync for FilePathTimestamp
impl Unpin for FilePathTimestamp
impl UnwindSafe for FilePathTimestamp
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