Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Convert Date/Time to UNIX

    Posted 08-10-2022 10:43
    No replies, thread closed.
    Hello,

    I'm retrieving a date in UNIX from a data action and need to perform a function of TODAY - UNIX date to use in a decision. I can either convert the UNIX timestamp to UTC or convert the UTC timestamp to UNIX. Are either of those possible within Architect? I'd prefer to convert the date/timeUTC that's passed in the GetCurrentDateTimeUtc() variable but I'm open to other ideas.

    Thanks,
    #Routing(ACD/IVR)

    ------------------------------
    MAURICE FORD
    ------------------------------


  • 2.  RE: Convert Date/Time to UNIX

    Posted 08-10-2022 11:01
    No replies, thread closed.
    ToInt(DateTimeDiff(GetCurrentDateTimeUtc(), MakeDateTime(1970, 1, 1)))​

    DateTimeDiff gets the difference between the 2 dates as a duration, ToInt converts a duration to the number of milliseconds in it.



    ------------------------------
    Melissa Bailey
    Genesys - Employees
    ------------------------------