Page 1 of 1

Convert GMT/UTC to local time

PostPosted: Thu Feb 07, 2008 10:55 pm
by desaubin
I am looking for a algoritm to convert GMT/UTC to local time (Europe: during winter +1, during summer +2).
Anything out there?

Re: Convert GMT/UTC to local time

PostPosted: Wed Jun 11, 2008 7:12 pm
by Bill Dennis
Assembler macro CONVTOD will apply your offset (+/- hours) to a UTC timestamp.

Re: Convert GMT/UTC to local time

PostPosted: Wed Jun 11, 2008 8:59 pm
by desaubin
Is CONVTOD supplied with z/OS?

Re: Convert GMT/UTC to local time

PostPosted: Wed Jun 11, 2008 9:44 pm
by Bill Dennis
Yes, it's supplied with z/OS. Read about it the MVS Assembler Macros Reference manual. You could check the LE Callable Services as there may be a function there, too.

Re: Convert GMT/UTC to local time

PostPosted: Tue Sep 11, 2012 4:19 pm
by steve-myers
Actually, I'm not sure Mr. Dennis is correct. CONVTOD translates binary TOD clock values to a more digestible format, but I do not believe it applies time zone and leap second corrections to the binary TOD clock values. Your program must do that using the leap second and timezone correction constants in the secondary CVT. By the way, using CVTTZ does not work correctly: it does not have leap second correction built into it, and you should not use it.

Re: Convert GMT/UTC to local time

PostPosted: Tue Sep 11, 2012 7:49 pm
by Akatsukami
Bill Dennis wrote:You could check the LE Callable Services as there may be a function there, too.

It is CEEGMTO.