Jump to content
  • CurDateTime()

    CurDateTime()

    Lua   → VBScript   SwxWare v13.10

     

    This function returns the current date and time according to the script user's location.

     

    local sDateTime = CurDateTime()   -- in "%d.%m.%Y %H:%M:%S" format

     

    or if being used directly within a GSE property dialog, e.g. in a Say Date block to directly announce the current date and time to the caller:

     

    image.png

     

     

    This function returns a string value. The date and time is formatted like "%d.%m.%Y %H:%M:%S".

     

    Note: this function is not the same as the Lua build-in functions os.date() and os.time().

     

    While os.date() and os.time() return the current date and time of the SwyxServer machine when being used within a call routing script, CurDate() uses the Server Script API function PBXUser.Now() to get the script users' date according to his location (timezone) configuration within SwyxWare. This is not necessarily the same.

     

     


    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.