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:
est31 2015-06-06 03:40:56 +02:00
parent 26ea12a873
commit 803069886e
11 changed files with 62 additions and 35 deletions

View file

@ -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;