spinoso_time/time/tzrs/
strftime.rs

1use super::Time;
2
3impl strftime::Time for Time {
4    fn year(&self) -> i32 {
5        Time::year(self)
6    }
7
8    fn month(&self) -> u8 {
9        Time::month(self)
10    }
11
12    fn day(&self) -> u8 {
13        Time::day(self)
14    }
15
16    fn hour(&self) -> u8 {
17        Time::hour(self)
18    }
19
20    fn minute(&self) -> u8 {
21        Time::minute(self)
22    }
23
24    fn second(&self) -> u8 {
25        Time::second(self)
26    }
27
28    fn nanoseconds(&self) -> u32 {
29        Time::nanoseconds(self)
30    }
31
32    fn day_of_week(&self) -> u8 {
33        Time::day_of_week(self)
34    }
35
36    fn day_of_year(&self) -> u16 {
37        Time::day_of_year(self)
38    }
39
40    fn to_int(&self) -> i64 {
41        Time::to_int(self)
42    }
43
44    fn is_utc(&self) -> bool {
45        Time::is_utc(self)
46    }
47
48    fn utc_offset(&self) -> i32 {
49        Time::utc_offset(self)
50    }
51
52    fn time_zone(&self) -> &str {
53        Time::time_zone(self)
54    }
55}