summaryrefslogtreecommitdiff
path: root/data/embryo
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-02-22 12:35:27 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-02-22 18:29:01 -0500
commita2dbaa2759cd11e1b3dbb45488a478eb70536fc2 (patch)
tree43051abd42de6dc6fa2535d1b61afafcd49d209b /data/embryo
parent3af1a8af1e76701d2204a8b3307cd80abce47efc (diff)
downloadefl-a2dbaa2759cd11e1b3dbb45488a478eb70536fc2.tar.gz
embryo: add tzdate function
in the case where a user wants to get the current date/time from a specified timezone, this function allows a timezone string to be passed as a parameter @feature
Diffstat (limited to 'data/embryo')
-rw-r--r--data/embryo/default.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/data/embryo/default.inc b/data/embryo/default.inc
index 632b30b892..7855ac8ec7 100644
--- a/data/embryo/default.inc
+++ b/data/embryo/default.inc
@@ -231,3 +231,10 @@ native Float:cbrt(Float:value);
native Float:exp(Float:value);
native Float:exp2(Float:value);
native Float:hypot(Float:valuex, Float:valuey);
+
+/**************************************************************************/
+/* ADDED in embryo 1.18 */
+/**************************************************************************/
+#define EMBRYO_118 118
+/* return the current date, year, time etc. in the variables provided modified by timezone tz */
+native tzdate(tz[], &year, &month, &day, &yearday, &weekday, &hr, &min, &Float:sec);