summaryrefslogtreecommitdiff
path: root/core/os
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-06-06 05:35:38 +0200
committerest31 <MTest31@outlook.com>2015-06-06 05:57:33 +0200
commitc5338fd6c40d08472b680809cfa04d47826bdcf5 (patch)
treed9cbdebd87b97616e0cbd52e46ad6887f01d90e1 /core/os
parent803069886ebca492c0d5f47133ccf7833c716e5a (diff)
Add OS.get_time_zone_info function
The returned dictionary maps "name" to the name of the current time zone, and "bias" to a bias from UTC in minutes.
Diffstat (limited to 'core/os')
-rw-r--r--core/os/os.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/os/os.h b/core/os/os.h
index 75a0a4eea7..0230a75ca0 100644
--- a/core/os/os.h
+++ b/core/os/os.h
@@ -244,9 +244,15 @@ public:
int min;
int sec;
};
-
+
+ struct TimeZoneInfo {
+ int bias;
+ String name;
+ };
+
virtual Date get_date(bool local=false) const=0;
virtual Time get_time(bool local=false) const=0;
+ virtual TimeZoneInfo get_time_zone_info() const=0;
virtual uint64_t get_unix_time() const;
virtual void delay_usec(uint32_t p_usec) const=0;