summaryrefslogtreecommitdiff
path: root/src/tz_str.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/tz_str.hh')
-rw-r--r--src/tz_str.hh16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tz_str.hh b/src/tz_str.hh
new file mode 100644
index 0000000..d706197
--- /dev/null
+++ b/src/tz_str.hh
@@ -0,0 +1,16 @@
+#ifndef TZ_STR_HH
+#define TZ_STR_HH
+
+#include <optional>
+#include <string_view>
+
+#include "time.h"
+
+namespace tz {
+
+std::optional<time_t> get_local_time(std::string_view tz_str,
+ time_t utc_time);
+
+} // namespace tz
+
+#endif // TZ_STR_HH