diff options
author | Kyle Luce <razzlegames@gmail.com> | 2016-03-15 21:17:10 -0700 |
---|---|---|
committer | Kyle Luce <razzlegames@gmail.com> | 2016-03-16 23:13:39 -0700 |
commit | 674c6f2f2de46517948c00ecfb7ee8f39849905e (patch) | |
tree | 27993974295922fc27bc612be70b04604975f692 /drivers/unix | |
parent | cb065b961c80ec6d810539e48ebff75b64367df3 (diff) |
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
Diffstat (limited to 'drivers/unix')
-rw-r--r-- | drivers/unix/os_unix.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index 84b6dc24dc..359758290f 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -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; |