craydate/files/file_path_timestamp.rs
1/// A filesystem timestamp, which can represent when a file or folder was last accessed, modified,
2/// etc.
3///
4/// The values here derived from
5/// <https://sdk.play.date/1.10.0/Inside%20Playdate.html#f-file.modtime>.
6#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
7pub struct FilePathTimestamp {
8 /// The timestamp's year.
9 pub year: i32,
10 /// The timestamp's month within the year, from 1 to 12.
11 pub month: i32,
12 /// The timestamp's day within the month, from 1 to 31.
13 pub day: i32,
14 /// The timestamp's hour within the day, from 0 to 23.
15 pub hour: i32,
16 /// The timestamp's minute within the hour, from 0 to 59.
17 pub minute: i32,
18 /// The timestamp's seconds within the minute, normally from 0 to 59. Can be 60 on a leap second.
19 pub second: i32,
20}