From 803069886ebca492c0d5f47133ccf7833c716e5a Mon Sep 17 00:00:00 2001 From: est31 Date: Sat, 6 Jun 2015 03:40:56 +0200 Subject: 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. --- core/os/os.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/os') diff --git a/core/os/os.h b/core/os/os.h index 2f9957c2f8..75a0a4eea7 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -245,8 +245,8 @@ public: int sec; }; - virtual Date get_date() const=0; - virtual Time get_time() const=0; + virtual Date get_date(bool local=false) const=0; + virtual Time get_time(bool local=false) const=0; virtual uint64_t get_unix_time() const; virtual void delay_usec(uint32_t p_usec) const=0; -- cgit v1.2.3