[Info-vax] how to get the time of any timezone (C or VMS RTL/system services/etc.)

Pierre pierre.bru at gmail.com
Mon May 2 18:47:22 EDT 2011


On May 2, 6:14 pm, abrsvc <dansabrservi... at yahoo.com> wrote:
> 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

yes, but unfortunately, some people once came up with DST which starts
and ends at different date every year... :-/



More information about the Info-vax mailing list