Jump to content
  • PBXScript.Now()

    PBXScript.Now()

    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().
     

     


    Tom Wellige
     Share


     Share




×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.