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

Handling of time

Time as string output

dayofmonth returns the day of the month as string.

dayofweek returns the day of the week as string.
hour returns the hour as a string
minute returns the minute as a string
month returns the month as a string
second returns the second as a string
year returns the year as a string

Generating timepoints

filltime generates vector of time points starting from t with length n and granulation gran (default month). The difference between two timepoints is given by step.
getlocalnow getlocalnow returns the actual date and time with correction for the time zone, daylight savings and so on. The corrections are machine dependend.
getnow getnow returns the actual date and time in Greenwich time.
settime settime generates from a set of vectors a vector of time points.

The parameter yr (year) is necessary, the parameters mo (month), dy (day

of month), hr (hour), mn (minute), sc (second) are optional.

The granulation of the measurement can be changed with the command

settimegran.

Each value in the produced set of vectors describes the distance to a fixed point in time

(usually 1.1.1900 0:00:00.0). The zero time can be changed with the

command settimezero.

The following example teaches you to be careful not to span too much time with a too small

granulation (some kind of overflow/underflow problem).

settimegran settimegran changes the granulation. Possible values for newgran are 1...7 (Seconds, minutes, hour, days, weeks, month, years)
settimezero settimezero changes the fixed time point.

Time as numerical output

ndayofmonth returns the day of the month as a number (1-31)
ndayofweek returns the day of the week as a number (1-7, sunday-saturday)
nhour returns the hour as a number (0-23)
nminute returns the minute as a number (0-59)
nmonth returns the month as a number
nsecond returns the second as a number (0-59)
nyear returns the year as a four digit number (YYYY)

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

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