Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum Unix Timestamp in Omnis Studio

  • Unix Timestamp in Omnis Studio

    Posted by Marco Antonio Borja Velezmoro on May 16, 2023 at 2:52 pm

    Hello, working to implement some payment gateways, they ask me for a date in ISO8601 format and Unix Timestamp, I have found in Omnis for the ISO8601 format but not for Unix Timestamp, any ideas on how to transform a date/time to Unix Timestamp in Omnis Studio?

    Thanks in advance
    ——–
    Hola, trabajando para implementar unas pasarelas de pago me piden fecha en formato ISO8601 y Unix Timestamp, he encontrado en Omnis para el formato ISO8601 pero no para Unix Timestamp, alguna idea de como transformar una fecha/hora a Unix Timestamp en Omnis Studio?

    Gracias de antemano

    Marco Antonio Borja Velezmoro replied 2 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Marten Verhoeven

    Member
    May 16, 2023 at 3:09 pm

    Hi Marco,

    I use this to convert from and to a unix date:

    dadd(kSecond,pDateInteger,dat(‘1970-01-01′,’y-M-D’))

    ddiff(kSecond,dat(‘1970-01-01′,’y-M-D’),pDate)

    Hope this helps,

    Marten

Log in to reply.