DATETIME elaboration (OpenInsight Specific)
At 23 JUN 1998 01:29:02AM Phil Johnson wrote:
I'm looking forward to using this feature for establishing time-taken for those big routines etc, and have figured the first bit, but how to you convert the second part to a time…
eg. 11132.6393402778
what does 6393402778 mean?
Thanks,
Phil J.
At 23 JUN 1998 09:05AM Carl Pates wrote:
Phil,
]]
eg. 11132.6393402778
what does 6393402778 mean?
«
It's the internal representation of the time…so to get the OConv version use…OConv( MTS )
eg,
Date=Oconv( "11132","D4/E" )
Time=Oconv( 6393402778, "MTS" )
Check out the online help "Oconv( MT)" for more details
Carl Pates
Sprezzatura Ltd
At 23 JUN 1998 09:17AM Cameron Revelation wrote:
Phil, Carl,
eg. 11132.6393402778 what does 6393402778 mean?
It is the fraction of a day. You can get a date/time value from date() and time() by:
equ SECS_PER_DAY$ to 86400 ;* 24 hrs x 60 mins x 60 secs
dt=date() + (time() / SECS_PER_DAY$)
You can get the date from a date/time in the same format returned by date():
d=int(dt)
You can also get the time from a date/time in the same format returned by time():
t=(dt - int(dt)) * SECS_PER_DAY$
Lastly, be careful using the function timedate(), since it returns an output format of the date and time, but it does so with the time first, so you CANNOT do the following:
dt=iconv(timedate(), "(DT)")
Cameron Purdy
Revelation Software
At 23 JUN 1998 04:57PM Eric Emu wrote:
Whatever happened to the good ol' days, when the native internal time and date functions and iconvs included
SECONDS.SINCE.SOLSTICE()
JULIAN.TO.GREGORIAN()
DAYLIGHT.SAVINGS()
MICROSECONDS.SINCE.LOGON()
VERNAL.EQUINOX()
NTH.TO.STH.HEMISPHERE.SEASON()
CONVERT.2000.CALENDAR.TO.1972()
EXTEND.BAR.HOURS.BY.THREE.DRINKS()
and whatever happened to verb $V56, the MAKE.LOGIN.LONG.ENOUGH.FOR.A.DECENT.COFFEE()
Very disappointed…
Eric
At 23 JUN 1998 05:12PM Cameron Revelation wrote:
Eric,
whatever happened to verb $V56, the MAKE.LOGIN.LONG.ENOUGH.FOR.A.DECENT.COFFEE
Off the record, we replaced $V56 with $V.90, which is faster and not as scrambed as the RTP by the same name.
Cameron Purdy
Revelation Software
At 24 JUN 1998 09:19AM Phil wrote:
At 27 JUN 1998 04:57PM Gary Gnu wrote:
They're still there for the purists. However, someone in the lab, who shall remain nameless, went a bit overboard in appeasing the purists. These functions names must now be entered in Latin, Celtic and Aramaic.
Gary.