Converting between UNIX time, local time, and $horolog

23 views
Skip to first unread message

Bhaskar, K.S

unread,
Mar 4, 2014, 5:52:22 PM3/4/14
to Hardhats, Enterprise Web Developer Community, Vi...@googlegroups.com
Today, we released an update to the GT.M POSIX plugin that includes a
binding to the POSIX mktime() function. This makes it easy to convert
between UNIX time, local time and $horolog, as well as to determine
whether Daylight Savings Time is in effect, as demonstrated by the small
program attached:

kbhaskar@bhaskark:~$ mumps -run gtm7969demo
$horolog=63250,61861 which is 2014:03:04:17:11:01:TUE
UNIX time from $horolog=1393971061
Day of the week is Tuesday
Day of the year (0=January 1) is 62
Daylight Savings Time is not in effect
$horolog from UNIX time=63250,61861
kbhaskar@bhaskark:~$

You will find the latest POSIX plugin in the folder at
http://sourceforge.net/projects/fis-gtm/files/Plugins/posix/ and the
tarball contains a readme with documentation as well as instructions for
building & installation.

Regards
-- Bhaskar

--
GT.M - Rock solid. Lightning fast. Secure. No compromises.

_____________
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.
gtm7969demo.m
Reply all
Reply to author
Forward
0 new messages