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 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

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

Result:
returns the current date in the (german) format dd.mm.yyyy
Example:
t = getlocalnow(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