summaryrefslogtreecommitdiff
path: root/drivers/unix/os_unix.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-03-18 10:04:13 +0100
committerRémi Verschelde <remi@verschelde.fr>2016-03-18 10:04:13 +0100
commitb955282d4673ea8b2240c4154b01a8cab858c2a9 (patch)
treea66942409e19f3f06070499c867fddfc06d30edf /drivers/unix/os_unix.cpp
parent021a84e704bf4b0a18df4515c01b83a657dc967c (diff)
parent674c6f2f2de46517948c00ecfb7ee8f39849905e (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.cpp1
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;