diff include/core/time.h @ 308:da2c5a8ff306

time: don't use time_t!
author Paper <paper@paper.us.eu.org>
date Tue, 11 Jun 2024 04:24:19 -0400
parents 91ac90a34003
children d928ec7b6a0d
line wrap: on
line diff
--- a/include/core/time.h	Sun May 19 18:25:14 2024 -0400
+++ b/include/core/time.h	Tue Jun 11 04:24:19 2024 -0400
@@ -6,7 +6,7 @@
 namespace Time {
 
 /* this is in SECONDS */
-using Timestamp = uint64_t;
+using Timestamp = int64_t;
 
 enum class Units {
 	Seconds,
@@ -16,7 +16,8 @@
 std::string GetSecondsAsRelativeString(Timestamp length);
 std::string GetSecondsAsAbsoluteString(Units unit_cutoff, Timestamp amount, double unit_in_seconds = 1.0);
 
-int64_t GetSystemTime();
+/* in UTC */
+Timestamp GetSystemTime();
 
 }; // namespace Time