Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

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

Example:
t = getnow()
dayofmonth(t)+"."+month(t)+"."+year(t)

Result:
returns the current date in the (german) format dd.mm.yyyy
Example:
t = getnow(1)
hour(t)+":"+minute(t)+":"+second(t)

Result:
returns the current time (format hh:mm:ss)



(C) MD*TECH Method and Data Technologies, 05.02.2006