summaryrefslogtreecommitdiffstats
path: root/core/bind/core_bind.h
diff options
context:
space:
mode:
authorRaphaelHunter <raphael20141024@gmail.com>2018-08-09 14:19:19 +0800
committerZhangYakun <zhangyakun@hummergames.com>2018-08-13 15:37:27 +0800
commit43825dce477f5ad2300f1fd5c07cd5aeb00c42b9 (patch)
treef7ea44dbd9432e3bc9094c43d9302ba70686731f /core/bind/core_bind.h
parentfed34c3fef480b84f4e1ec34d19b72534f99dfac (diff)
downloadredot-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.h4
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;