summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibTimeZone/TimeZone.h
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-12-28 12:53:53 -0500
committerLinus Groh <mail@linusgroh.de>2022-01-08 12:45:34 +0100
commit9253e695d129ca28b570a4fdebabb8e25433c2da (patch)
tree2531b14e31a9de6f4799d000264aa9b52ca9dce3 /Userland/Libraries/LibTimeZone/TimeZone.h
parent41f4a5050c80b738c45808b855be401ecff36d80 (diff)
downloadserenity-9253e695d129ca28b570a4fdebabb8e25433c2da.zip
LibTimeZone: Parse ZONE entries from the TZDB and generate their names
Diffstat (limited to 'Userland/Libraries/LibTimeZone/TimeZone.h')
-rw-r--r--Userland/Libraries/LibTimeZone/TimeZone.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/Userland/Libraries/LibTimeZone/TimeZone.h b/Userland/Libraries/LibTimeZone/TimeZone.h
new file mode 100644
index 0000000000..552755dfee
--- /dev/null
+++ b/Userland/Libraries/LibTimeZone/TimeZone.h
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2022, Tim Flynn <trflynn89@pm.me>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+#include <AK/Optional.h>
+#include <AK/StringView.h>
+#include <LibTimeZone/Forward.h>
+
+namespace TimeZone {
+
+Optional<TimeZone> time_zone_from_string(StringView time_zone);
+
+}