[Info-vax] how to get the time of any timezone (C or VMS RTL/system services/etc.)
abrsvc
dansabrservices at yahoo.com
Mon May 2 12:14:40 EDT 2011
On May 2, 11:59 am, Pierre <pierre.... at gmail.com> wrote:
> hi,
>
> for historical reasons, my machine time is UTC [I can not change
> this].
> is it possible using C or VMS RTL/system services/etc. to get the
> "local time" (the one of my wall clock) ?
> as all the logicals point to UTC, I must be able to specify the
> requested timezone... :-/
>
> I'm running VMS 7.3-2, 8.3, 8.4
>
> TIA, Pierre
If you know the offset from UTC for your timezone, add or subtract
that offset from the "current" time and use the $ASCTIM system service
to produce an absolute time.
Dan
More information about the Info-vax
mailing list