TIMEDATE function
Syntax
TIMEDATE ( )
Description
Use the TIMEDATE function to return the current system time and date in the following format:
hh:mm:ss dd mmm yyyy
- hh
- Hours (based on a 24-hour clock)
- mm
- Minutes
- ss
- Seconds
- dd
- Day
- mmm
- Month
- yyyy
- Year
No arguments are required with the TIMEDATE function.
If you want to increase the number of spaces between the time and the date, edit the line beginning with TMD0001 in the msg.txt file in the UV account directory. This line can contain up to four hash signs (#). Each # prints a space between the time and the date.
If NLS mode is enabled, the TIMEDATE function uses the convention defined in the TIMEDATE field in the NLS.LC.TIME file for combined time and date format. Otherwise, it returns the time and date.
Examples
PRINT TIMEDATE()
This is the program output:
11:19:07 18 JUN 1996
If the TMD0001 message contains four #s, the program output is:
11:19:07 18 JUN 1996