diff options
| author | Eugen Wissner <belka@caraus.de> | 2024-06-24 13:09:00 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2024-06-24 13:09:00 +0200 |
| commit | b11e18e560edc9f363c4a98ddb5f5da3d66a7881 (patch) | |
| tree | e81ae9b6a10ced2652a179151ce5ad3553fd39a0 /src/timedate.h | |
| parent | 3a85891f2ef081fe9b548bdf3132a48ee4780d89 (diff) | |
| download | slack-timedate-b11e18e560edc9f363c4a98ddb5f5da3d66a7881.tar.gz | |
Implement TimeUSecRTC property
Diffstat (limited to 'src/timedate.h')
| -rw-r--r-- | src/timedate.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/timedate.h b/src/timedate.h index 2b2d1a2..952209c 100644 --- a/src/timedate.h +++ b/src/timedate.h @@ -43,6 +43,9 @@ namespace dlackware::timedate // Shows whether the kernel reports the time as synchronized. bool ntp_synchronized(); + // Shows the current time in the RTC. + std::uint64_t time_usec_rtc(); + // Returns the timezones available on the system. std::vector<Glib::ustring> list_timezones(); @@ -57,7 +60,7 @@ namespace dlackware::timedate // Changes the date/time // Takes the amount of seconds since UNIX epoche and // Throws std::system_error. - void set_time(gint64 seconds_since_epoch, bool relative, bool user_interaction); + void set_time(std::int64_t seconds_since_epoch, bool relative, bool user_interaction); class timedate1 { |
