Add utc param to get_time and get_date methods
If utc == false, we return the local time, like before. Otherwise, we return UTC time. utc defaults to false to not break behaviour.
This commit is contained in:
parent
26ea12a873
commit
803069886e
11 changed files with 62 additions and 35 deletions
|
|
@ -204,8 +204,8 @@ public:
|
|||
void set_use_file_access_save_and_swap(bool p_enable);
|
||||
|
||||
void set_icon(const Image& p_icon);
|
||||
Dictionary get_date() const;
|
||||
Dictionary get_time() const;
|
||||
Dictionary get_date(bool utc) const;
|
||||
Dictionary get_time(bool utc) const;
|
||||
uint64_t get_unix_time() const;
|
||||
|
||||
int get_static_memory_usage() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue