acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
day.h
1// Refactored/Merged by camilon on 2021-10-04 07:00 BRT <3ThomasBorregaardSorensen!![ THE ONE GOD ]
2#pragma once
3
4
5
6class CLASS_DECL_ACME day :
7 public time
8{
9public:
10
11
12 using timeclass ::time;
13
14 day() : time(e_raw, 86'400) {}
15 day(const class time & time) : class ::time(time) {}
16 template < prototype_integral INTEGRAL >
17 day(INTEGRAL integral) : time(::integral_day(integral)) { }
18 template < prototype_floating FLOATING >
19 day(FLOATING floating) : time(::floating_day(floating)) { }
20
21
22
23 bool done() const { return integral_day().m_i32 >= 1; }
24
25
26};
27
28
29//inline ::day first_day() { return class ::time::first(); }
30inline ::day get_day() { return class ::time::now(); }
31
32