You've already forked godot
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user