Mercurial > minori
view include/core/time.h @ 372:a65a43766b22
dep/animone: atspi a11y impl didn't work at all and hit an assertion
because paper can't code
author | Paper <paper@tflc.us> |
---|---|
date | Fri, 25 Jul 2025 11:02:29 -0400 |
parents | 47c9f8502269 |
children |
line wrap: on
line source
#ifndef MINORI_CORE_TIME_H_ #define MINORI_CORE_TIME_H_ #include <cstdint> #include <string> namespace Time { /* this is in SECONDS */ using Timestamp = int64_t; enum class Units { Seconds, Minutes }; std::string GetSecondsAsRelativeString(Timestamp length); std::string GetSecondsAsAbsoluteString(Units unit_cutoff, Timestamp amount, double unit_in_seconds = 1.0); /* in UTC */ Timestamp GetSystemTime(); Timestamp ParseISO8601Time(const std::string &str); }; // namespace Time #endif // MINORI_CORE_TIME_H_