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

Bob Koehler koehler at eisner.nospam.encompasserve.org
Mon May 2 13:12:16 EDT 2011


In article <bd3aeafd-b8dc-4720-aa74cap0e29011e8808 at e8g2000vbz.googlegroups.com>, Pierre <pierre.bru 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.




More information about the Info-vax mailing list