diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2022-02-23 22:12:02 -0600 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2022-02-23 22:12:02 -0600 |
commit | 55aabb8b0607174668fcf63c2cee2edf4a1f8527 (patch) | |
tree | c0645943b785847ab8d46f5f6fc6b05bae54bdd3 /core/os/time.h | |
parent | cfc7c78732198a7ebc43b92ed24e7025fdf4bc11 (diff) | |
download | redot-engine-55aabb8b0607174668fcf63c2cee2edf4a1f8527.tar.gz |
Add offset string from minutes conversion method to Time singleton
Diffstat (limited to 'core/os/time.h')
-rw-r--r-- | core/os/time.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/os/time.h b/core/os/time.h index 3f00ba1478..0021c0ac6f 100644 --- a/core/os/time.h +++ b/core/os/time.h @@ -86,9 +86,10 @@ public: String get_date_string_from_unix_time(int64_t p_unix_time_val) const; String get_time_string_from_unix_time(int64_t p_unix_time_val) const; Dictionary get_datetime_dict_from_string(String p_datetime, bool p_weekday = true) const; - String get_datetime_string_from_dict(Dictionary p_datetime, bool p_use_space = false) const; - int64_t get_unix_time_from_datetime_dict(Dictionary p_datetime) const; + String get_datetime_string_from_dict(const Dictionary p_datetime, bool p_use_space = false) const; + int64_t get_unix_time_from_datetime_dict(const Dictionary p_datetime) const; int64_t get_unix_time_from_datetime_string(String p_datetime) const; + String get_offset_string_from_offset_minutes(int64_t p_offset_minutes) const; // Methods that get information from OS. Dictionary get_datetime_dict_from_system(bool p_utc = false) const; |