Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 19 SEP 2003 04:26:21AM dsig@sigafoos.org wrote:

As title says .. i am looking for a I/O conversion to format date/time into 'std' UTC (i know .. whose standard :-)

dsig@sigafoos.org

DSigs Radio Free Oregon


At 23 SEP 2003 03:17AM Steve Smith wrote:

Isn't the format simply 19951231T235959 to express the current GMT?

So something like (for zonehrs=+10 in Melbourne)

REVUTCDATETIME=REVDATE * 86400 + REVTIME - (60 * ZONEHRS)

REVUTCDATE=INT(REVUTCDATETIME/86400)

REVUTCTIME=MOD(REVUTCDATETIME,86400)

ANS=OCONV(REVUTCDATE,'D J'): 'T' : OCONV(REVUTCTIME,'MTS ')

SWAP SPACE(1) WITH "" IN ANS


At 23 SEP 2003 07:20PM Steve Smith wrote:

DSig - Correction (must remember not to post here when half asleep)

Isn't the format simply 19951231T235959 to express the current GMT?

So something like (for zonehrs=+10 in Melbourne)

* calculate the seconds past midnight 1/1/68, allowing for GMT

* difference from your current timezone

REVUTCDATETIME=(REVDATE * 86400) + REVTIME - (3600 * ZONEHRS)

* now split it back into REV format time and date GMT

REVUTCDATE=INT(REVUTCDATETIME/86400)

REVUTCTIME=MOD(REVUTCDATETIME,86400)

* date & time using native REV functions - note spaces as delimiters

ANS=OCONV(REVUTCDATE,'D J'): 'T' : OCONV(REVUTCTIME,'MTS ')

* remove spaces

SWAP SPACE(1) WITH "" IN ANS


At 24 SEP 2003 02:52AM dsig@sigafoos.org wrote:

yeah .. writing it isn't the bit .. if there was one already done then I would use it.

it's called reusable ..

I have worked in places that NIH was the main theme of all the programming staff of course 'It Dont Work' could have also been their main theme

dsig@sigafoos.org

DSigs Radio Free Oregon

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/899f85ae16e3e7a285256da6002e5b97.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1