Thread

AW_UNIVERSE_TIME????? (Sdk)

AW_UNIVERSE_TIME????? // Sdk

1  |  

john

Apr 25, 2002, 5:11pm
How do i get this to show a display like 4:56:13 PM?

baron

Apr 25, 2002, 6:16pm
news://news.activeworlds.com/3c9b93fe at server1.Activeworlds.com


[View Quote]

young phalpha

Apr 25, 2002, 10:34pm
If this is Delphi here is some code which I use..

procedure HandleEventUniverseAttributes(); cdecl;
var
TempTime: TDateTime;
begin
{
there is a variable called UnixDelta or something which might make the TryEncodeDateTime
useless, but I haven't experimented with that myself so you might consider looking in to that
}
TryEncodeDateTime(1970, 1, 1, 24, 0, 0, 0, TempTime);
TempTime := IncSecond(TempTime, (aw_int(AW_UNIVERSE_TIME) - 7200));
TimeOffset := Now - TempTime;
end;

TimeOffset simply is a global TDateTime value I use. Whenever you need to display the date in
VRT, I use:

DateTimeToStr(Now - TimeOffset) + ' VRT'

- YP

[View Quote]

john

Apr 26, 2002, 1:36pm
To clarify this is atcually c++ I am talking about although I usually make
VB posts... ty baron... the vb one helps a lot :-)

But i need c++ so argh
[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn