AGG Software Forums
November 24, 2024, 08:57:32 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome on our forum!
 
   Home   Help Search Login Register  

Pages: [1]
  Print  
Author Topic: Convertion of Unix timestamp  (Read 18255 times)
juga
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« on: May 20, 2013, 07:12:52 PM »

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!
Logged
juga
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« Reply #1 on: November 15, 2023, 02:00:00 PM »

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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines