Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.vms > #2613

Re: how to get the time of any timezone (C or VMS RTL/system services/etc.)

From koehler@eisner.nospam.encompasserve.org (Bob Koehler)
Newsgroups comp.os.vms
Subject Re: how to get the time of any timezone (C or VMS RTL/system services/etc.)
Message-ID <78Y2urGSOZF0@eisner.encompasserve.org> (permalink)
Date 2011-05-02 12:12 -0500
References <bd3aeafd-b8dc-4720-aa74-0e29011e8808@e8g2000vbz.googlegroups.com>
Organization Encompasserve

Show all headers | View raw


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

Back to comp.os.vms | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

how to get the time of any timezone (C or VMS RTL/system services/etc.) Pierre <pierre.bru@gmail.com> - 2011-05-02 08:59 -0700
  Re: how to get the time of any timezone (C or VMS RTL/system services/etc.) abrsvc <dansabrservices@yahoo.com> - 2011-05-02 09:14 -0700
    Re: how to get the time of any timezone (C or VMS RTL/system services/etc.) Pierre <pierre.bru@gmail.com> - 2011-05-02 15:47 -0700
  Re: how to get the time of any timezone (C or VMS RTL/system services/etc.) koehler@eisner.nospam.encompasserve.org (Bob Koehler) - 2011-05-02 12:12 -0500
    Re: how to get the time of any timezone (C or VMS RTL/system services/etc.) abrsvc <dansabrservices@yahoo.com> - 2011-05-02 10:21 -0700
      Re: how to get the time of any timezone (C or VMS RTL/system services/etc.) Pierre <pierre.bru@gmail.com> - 2011-05-02 15:44 -0700
      Re: how to get the time of any timezone (C or VMS RTL/system services/etc.) koehler@eisner.nospam.encompasserve.org (Bob Koehler) - 2011-05-03 08:08 -0500
        Re: how to get the time of any timezone (C or VMS RTL/system services/etc.) CY <christery@gmail.com> - 2011-05-07 00:52 -0700
          Re: how to get the time of any timezone (C or VMS RTL/system services/etc.) CY <christery@gmail.com> - 2011-05-07 00:54 -0700
          Re: how to get the time of any timezone (C or VMS RTL/system services/etc.) "Richard B. Gilbert" <rgilbert88@comcast.net> - 2011-05-07 17:58 -0400
          Re: how to get the time of any timezone (C or VMS RTL/system services/etc.) Pierre <pierre.bru@gmail.com> - 2011-05-09 06:28 -0700
  Re: how to get the time of any timezone (C or VMS RTL/system services/etc.) Jim <mckinneyj@saic.com> - 2011-05-02 10:19 -0700
    Re: how to get the time of any timezone (C or VMS RTL/system services/etc.) Pierre <pierre.bru@gmail.com> - 2011-05-02 15:49 -0700

csiph-web