diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-03-18 10:04:13 +0100 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-03-18 10:04:13 +0100 |
commit | b955282d4673ea8b2240c4154b01a8cab858c2a9 (patch) | |
tree | a66942409e19f3f06070499c867fddfc06d30edf /drivers/unix/os_unix.cpp | |
parent | 021a84e704bf4b0a18df4515c01b83a657dc967c (diff) | |
parent | 674c6f2f2de46517948c00ecfb7ee8f39849905e (diff) |
Merge pull request #4071 from Razzlegames/getUnixTimeFromDateTime
Add function to convert Datetime from a dictionary to Epoch
Diffstat (limited to 'drivers/unix/os_unix.cpp')
-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; |