Lua → VBScript SwxWare v13.27
This function returns the script entities (user or user group) current date and time.
-- get date/time as string local sDateTime = PBXUser.Now() -- in "%d.%m.%Y %H:%M:%S" format -- get date/time as table local tDateTime = PBXUser.Now("*t") -- .sec : number -- .min : number -- .hour : number -- .day : number -- .month : number -- .year : number -- .wday : number -- .yday : number -- .isdst : boolean
This function returns a string or a table value.
With no parameter given, this function returns the current date and time in "%d.%m.%Y %H:%M:%S" format.
With the string parameter "*t" given, this function returns the current date and time in a table format.
This is the local time according to the user or group configured location.
If no parameter is used, this function is identical to the GSE build-in function CurDateTime().
By Tom Wellige