Convert Unix timestamps

16 views
Skip to first unread message

Luis Meza

unread,
Nov 17, 2016, 5:34:09 AM11/17/16
to FlockLab users
This is a little bit offtopic question: Does somebody knows about a reliable tool/app to convert Unix timestamps to a more human readable format? In an absolut time or with microseconds accuracy would be perfect, due to the time that a WSN deals with.

Thanks in advance, Luis.

Roman Lim

unread,
Nov 17, 2016, 7:11:47 AM11/17/16
to flockla...@googlegroups.com
Hi Luis

You could use "date" on the command line, e.g., "date +'%D %T.%N' --date @1479384499.03423"

Cheers
Roman

rdaforno

unread,
Nov 17, 2016, 7:22:41 AM11/17/16
to flockla...@googlegroups.com
Or use e.g. a Python script to convert all timestamps in the serial.csv
file, see attachment.

Cheers,
Reto
convert_timestamp.py

Luis Meza

unread,
Nov 17, 2016, 10:32:46 AM11/17/16
to FlockLab users
Thank you guys for your friendly answers, it was easier than I tought it would be.

Cheers, Luis.
Reply all
Reply to author
Forward
0 new messages