Difference between revisions of "TIMEOFDAY()"

From Recital Documentation Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{YLM to do}}
 
{{YLM to do}}
 +
 +
Returns string
 +
 
<pre>
 
<pre>
 
//same as time() - whole seconds only
 
//same as time() - whole seconds only
 
> ? timeofday()
 
> ? timeofday()
 
14:43:26
 
14:43:26
//mm-dd-yyyy hh:mm:ss:xxx (24hr)
+
//MM-DD-YYYY hh:mm:ss:xxx (24hr)
 
> ? timeofday(1)
 
> ? timeofday(1)
 
11-06-2009 14:44:33.036
 
11-06-2009 14:44:33.036
Line 13: Line 16:
 
> ? timeofday(3)
 
> ? timeofday(3)
 
53088.540
 
53088.540
 +
//seconds since TIMEOFDAY() last called
 
> ? timeofday(4)
 
> ? timeofday(4)
 
5.248
 
5.248
 +
//YYYYMMDDhh:mm:ss
 
> ? timeofday(5)
 
> ? timeofday(5)
 
2009110614:44:58
 
2009110614:44:58
 
</pre>
 
</pre>

Revision as of 16:49, 6 November 2009

Template:YLM to do

Returns string

//same as time() - whole seconds only
> ? timeofday()
14:43:26
//MM-DD-YYYY hh:mm:ss:xxx (24hr)
> ? timeofday(1)
11-06-2009 14:44:33.036
// hh:mm:ss:xxx (24hr)
> ? timeofday(2)
14:44:41.012
//seconds since midnight
> ? timeofday(3)
53088.540
//seconds since TIMEOFDAY() last called
> ? timeofday(4)
5.248
//YYYYMMDDhh:mm:ss
> ? timeofday(5)
2009110614:44:58