1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Add function to convert Date time from a dictionary to Epoch

- Also changed get_time_from_unix_time to get_date_time_from_unix_time to be
  consistent.

Ticket:
https://github.com/godotengine/godot/issues/4038
This commit is contained in:
Kyle Luce
2016-03-15 21:17:10 -07:00
parent cb065b961c
commit 674c6f2f2d
4 changed files with 189 additions and 29 deletions

View File

@@ -261,6 +261,7 @@ OS::Date OS_Unix::get_date(bool utc) const {
return ret;
}
OS::Time OS_Unix::get_time(bool utc) const {
time_t t=time(NULL);
struct tm *lt;