DateTimeFunctionNum coding group

This is a selectable option list supplying ready-to-use numerical date & time functions for the data generator.

Lua access code

To access the code of the codings below, append the coding group name and coding name to inmation.model.codes, see an example below.

return inmation.model.codes.DateTimeFunctionNum.SERVER_CUR_DAY_LOCAL

Codings

Name Code Description
SERVER_CUR_DAY_LOCAL 13 This function supplies the current day value of the locale server time
SERVER_CUR_DAY_UTC 12 This function supplies the current day value of the UTC server time
SERVER_CUR_DOW 18 This function supplies the current day of week value of the UTC server time
SERVER_CUR_DOW_LOCAL 19 This function supplies the current day of week value of the locale server time
SERVER_CUR_HOUR_LOCAL 11 This function supplies the current hour value of the locale server time
SERVER_CUR_HOUR_UTC 10 This function supplies the current hour value of the UTC server time
SERVER_CUR_MIN_LOCAL 9 This function supplies the current minute value of the locale server time
SERVER_CUR_MIN_UTC 8 This function supplies the current minute value of the UTC server time
SERVER_CUR_MONTH_LOCAL 15 This function supplies the current month value of the locale server time
SERVER_CUR_MONTH_UTC 14 This function supplies the current month value of the UTC server time
SERVER_CUR_MS 6 This function supplies the current server time millisecond
SERVER_CUR_SEC 7 This function supplies the current server time second
SERVER_CUR_YEAR_LOCAL 17 This function supplies the current year value of the locale server time
SERVER_CUR_YEAR_UTC 16 This function supplies the current year value of the UTC server time
SERVER_MS_OF_DAY_LOCAL 5 This function supplies the server milliseconds since midnight (local time)
SERVER_MS_OF_DAY_UTC 4 This function supplies the server time in milliseconds since midnight (UTC)
SERVER_POSIX_LOCAL 2 This function siupplies the server local time in milliseconds since epoch
SERVER_POSIX_UTC 1 This function supplies the server UTC time in milliseconds since epoch (POSIX time)
SERVER_TZ_BIAS 3 This function supplies the server timezone bias in milliseconds relative to Greenwhich Mean Time (GMT)