[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:44:15 EDT 2011
On May 2, 7:21 pm, abrsvc <dansabrservi... at yahoo.com> wrote:
> On May 2, 1:12 pm, koeh... at eisner.nospam.encompasserve.org (Bob
>
>
>
>
>
>
>
>
>
> Koehler) wrote:
> > In article <bd3aeafd-b8dc-4720-aa74cap0e29011e8... at e8g2000vbz.googlegroups.com>, Pierre <pierre.... at gmail.com> writes:
>
> > > 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
>
> > If the system time is set to UTC, and the system logicals are set
> > to UTC, then any of the C time functions which accept a timezone field
> > as _input_ should return the correct time. The C RTL assumes that
> > the system is set to local time and the logical names tell it what
> > time zone that is.
>
> . at Bob,
>
> I read the request as asking for a way to present the local time (wall
> clock) when the system time s set to UTC. In other words, the default
> presentation of time (UTC) is say 1PM and the offset from UTC for the
> location is +2 hours, then the wall clock time is actually 3PM. The
> system shows the time as 1PM and the utility being requested should
> show 3PM.
>
> Dan
exact.
More information about the Info-vax
mailing list