From 674c6f2f2de46517948c00ecfb7ee8f39849905e Mon Sep 17 00:00:00 2001 From: Kyle Luce Date: Tue, 15 Mar 2016 21:17:10 -0700 Subject: 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 --- drivers/unix/os_unix.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/unix/os_unix.cpp') 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; -- cgit v1.2.3