-
Notifications
You must be signed in to change notification settings - Fork 2
_datetime
bergsma edited this page Sep 26, 2014
·
3 revisions
#datetime
###Returns a sortable datetime string of the form "YYYYMMDD:HHMMSS".
Syntax
result = datetime[ ansiTime ] ;
Arguments
- int ansiTime(optional)
With no arguments, datetime returns the current time. When an argument is specified, it is the ansitime, which is defined as the number of seconds since the Epoch (Jan 1, 1970).
Return Value
str result
- YYYYMMDD:HHMMSS : From Jan 01, 1970 through Jan 18, 2038.
The STATUS variable is set to $ACKNOWLEDGE
str result
- YYYYMMDD:HHMMSS : From Jan 01, 1970 through Jan 18, 2038.
The STATUS variable is set to $ACKNOWLEDGE
Exceptions
-
%ARGUMENT: Invalid arguments. Usage: result = datetime[ ansiTime ] ;
-
%BOUNDS: Invalid ansi time value.
Description
- None
Examples
put date ;
put time;
put datetime ;
put datetime timestamp ;
put datetime 0 ;
put datetime parsedate "20010101:000000 PST" ;
put datetime parsedate "20010101:000000" ;
Related Links
None