does the challenge you set yourself precludes using the oorexx datetime object?

 
Or, indeed, the humble TIME() built-in function: 
 
  say time('o')
 
displays the offset from GMT in microseconds: 

Offset

returns the offset of the local time from UTC in microseconds. The offset value
will be negative for  timezones west of the Prime Meridian and positive for
timezones east of Prime Meridian. The local  time('F') value can be converted to
UTC by adding the time('O') value.

Mike


On 19 October 2013 08:07, Mike Cowlishaw <[email protected]> wrote:



> Yes, it's another exec in a separate file.  That one makes no
> calls to external programs per se, but it does use OLEObj to
> retrieve certain information from WMI. I wanted to see if I
> could build my own utility for converting between local and
> UTC time and I use OLEObj to fetch information about the
> local time zone and offset for the conversion.


Maybe there's a problem in OLEObj (or the system calls it uses).  It's not
something I've used.

Mike


------------------------------------------------------------------------------

October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >

http://pubads.g.doubleclick.net/gampad/clk?id=60135031
<http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk>
&iu=/4140/ostg.clktrk

_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel



------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to