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