/* ... */
Getting the date that Io was started (I think):
Date
Getting the current date/time:
Date now
(Note: setting this affects Date, somehow.)
Getting the date/time as a number, in seconds:
Io> Date now asNumber ==> 1147198509.417114 Io> Date now asNumber ==> 1147198512.33313
Getting individual parts of a Date object:
Io> d := Date now ==> 2006-05-09 21:53:03 EST Io> d ==> 2006-05-09 21:53:03 EST Io> d hour ==> 21 Io> d minute ==> 53 Io> d second ==> 3.747125 Io> d year ==> 2006 Io> d month ==> 5 Io> d day ==> 9
Use Date cpuSecondsToRun to calculate how long certain code takes to execute.
Io> Date cpuSecondsToRun(100000 repeat(Date now)) ==> 0.313