annotate include/core/time.h @ 46:d0adc4aedfc8
*: update...
this commit:
1. consolidates dark theme stuff to dark_theme.cpp
2. creates a new widgets folder to store all of our
custom widgets
3. creates the list settings page in the information
dialog, although much of it is nonfunctional: it
doesn't save, and the status doesn't even get filled
in... we'll fix this later!
author |
Paper <mrpapersonic@gmail.com> |
date |
Sat, 23 Sep 2023 01:02:15 -0400 |
parents |
2743011a6042 |
children |
c69230dc2b5d |
rev |
line source |
9
|
1 #ifndef __core__time_h
|
|
2 #define __core__time_h
|
|
3 #include <cstdint>
|
|
4 #include <string>
|
|
5 namespace Time {
|
|
6
|
|
7 class Duration {
|
|
8 public:
|
|
9 Duration(int64_t l);
|
|
10 int64_t InSeconds();
|
|
11 int64_t InMinutes();
|
|
12 int64_t InHours();
|
|
13 int64_t InDays();
|
|
14 std::string AsRelativeString();
|
|
15
|
|
16 private:
|
|
17 int64_t length;
|
|
18 };
|
|
19
|
|
20 int64_t GetSystemTime();
|
|
21
|
36
|
22 }; // namespace Time
|
9
|
23 #endif // __core__time_h |