1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
use ;
use Color;
/// Returns the default day start hour (6:00 AM)
/// Returns the default night start hour (6:00 PM)
/// Determines if current time is nighttime based on configured boundaries
///
/// Nighttime is considered any hour before day_start OR after night_start
///
/// # Arguments
/// * `day_start` - Hour when daytime begins (0-23)
/// * `night_start` - Hour when nighttime begins (0-23)
///
/// # Returns
/// `true` if current time is nighttime, `false` if daytime
/// Determines if current time is daytime based on configured boundaries
///
/// Daytime is considered any hour from day_start (inclusive) to night_start (exclusive)
///
/// # Arguments
/// * `day_start` - Hour when daytime begins (0-23)
/// * `night_start` - Hour when nighttime begins (0-23)
///
/// # Returns
/// `true` if current time is daytime, `false` if nighttime
/// Returns appropriate color based on current time period
///
/// # Arguments
/// * `day_color` - Color to use during daytime
/// * `night_color` - Color to use during nighttime
/// * `day_start` - Hour when daytime begins (0-23)
/// * `night_start` - Hour when nighttime begins (0-23)
///
/// # Returns
/// `day_color` if current time is daytime, `night_color` if nighttime