Group: | Handling of time |
Topic: | Generating timepoints |
See also: | settime settimegran settimezero getnow |
Function: | getlocalnow | |
Description: | getlocalnow returns the current date and time with correction for the time zone, daylight savings and so on. The corrections are machine dependend. |
Usage: | t = getlocalnow({gran}) | |
Input: | ||
gran | optional integer, time granulation; possible values are 1...4 (seconds, minutes, hour, days); default is 4 | |
Output: | ||
t | time |
t = getlocalnow() dayofmonth(t)+"."+month(t)+"."+year(t)
returns the current date in the (german) format dd.mm.yyyy
t = getlocalnow(1) hour(t)+":"+minute(t)+":"+second(t)
returns the current time (format hh:mm:ss)