Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

221
Vistas
Trino/Presto: How to convert a timestamp to a bigint in milliseconds

I have the following SQL:

 select cast(to_unixtime(date_trunc('hour', current_timestamp)) AS bigint);

Basically I always go back to the beginning of the time, take that timestamp and try to get the Unix time.

However, this is printing a value like this, which is in seconds: 1708473600 but I want it to be in milliseconds, something like 1708473600000 .

I can't seem to find an example in the Trino documentation on how to do this. They have a to_millisecond method that takes an interval. I just want to provide a timestamp and get the unix epoch time in ms.

over 2 years ago · Carlos Garzón Colorado
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda