News:

Welcome on our forum!

Main Menu

Convertion of Unix timestamp

Started by juga, May 20, 2013, 04:12:52 PM

Previous topic - Next topic

juga

Hi, I am testing Advanced Serial Data Logger with a serial device that provides through the serial port some values and the timestamp in Unix time format, for example:

1368597301 (Unix time) -----> 2013-05-15 05:55:01

Is it possible to convert this value using the Expressions plug to a regular date and time format (for example YYYY.MM.DD HH:NN:SS) in the parsing process?

Thanks!

juga

Hi, I found the solution:

This should be used on the expressions module:

TIME=UNIXTODATETIME(TIME)

Where:

TIME: parsed variable in Unix time format (for example 1368597301)

UNIXTODATETIME: function to convert from unix to regular time expression

Advanced Serial Data Logger is a great application! best regards.