ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
AW_UNIVERSE_TIME????? (Sdk)
AW_UNIVERSE_TIME????? // SdkbaronApr 25, 2002, 6:16pm
young phalphaApr 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] johnApr 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] |