diff options
| author | RaphaelHunter <raphael20141024@gmail.com> | 2018-08-09 14:19:19 +0800 |
|---|---|---|
| committer | ZhangYakun <zhangyakun@hummergames.com> | 2018-08-13 15:37:27 +0800 |
| commit | 43825dce477f5ad2300f1fd5c07cd5aeb00c42b9 (patch) | |
| tree | f7ea44dbd9432e3bc9094c43d9302ba70686731f /core/bind/core_bind.h | |
| parent | fed34c3fef480b84f4e1ec34d19b72534f99dfac (diff) | |
| download | redot-engine-43825dce477f5ad2300f1fd5c07cd5aeb00c42b9.tar.gz | |
fix #20390 :get_unix_time_from_datetime and get_date_time_from_unix_time can handle time before year 1970 now
Diffstat (limited to 'core/bind/core_bind.h')
| -rw-r--r-- | core/bind/core_bind.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/bind/core_bind.h b/core/bind/core_bind.h index 311372aeca..b587b9257f 100644 --- a/core/bind/core_bind.h +++ b/core/bind/core_bind.h @@ -270,8 +270,8 @@ public: Dictionary get_date(bool utc) const; Dictionary get_time(bool utc) const; Dictionary get_datetime(bool utc) const; - Dictionary get_datetime_from_unix_time(uint64_t unix_time_val) const; - uint64_t get_unix_time_from_datetime(Dictionary datetime) const; + Dictionary get_datetime_from_unix_time(int64_t unix_time_val) const; + int64_t get_unix_time_from_datetime(Dictionary datetime) const; Dictionary get_time_zone_info() const; uint64_t get_unix_time() const; uint64_t get_system_time_secs() const; |
