Time format for the push dat

General questions and discussions focused around the EKM Metering System. Discuss your meters, installations, and meter communications here.
Post Reply
meniscus
Posts: 2
Joined: Thu Sep 27, 2012 2:31 am

Time format for the push dat

Post by meniscus »

Hi
We have some data that we are looking to get from the EKM servers and the data has a read sequence of 1348753764218

Can someone advise how to convert this (which we assume is something like ticks) into seconds etc.

Thanks
Adam
Posts: 5
Joined: Thu Sep 27, 2012 12:54 pm

Re: Time format for the push dat

Post by Adam »

Hi Meniscus!

The data code you refer to is called Unix Time.

Our EKM Push system time stamps each meter read with a Unix Time stamp (for example: <read seq='1348753764218') See EKM Push Schema for details: http://documents.ekmmetering.com/EKM_Push_Schema.pdf

Remove the last 3 digits (these are milliseconds and are not needed) to convert this number into human readable text. Command line> date -r 1348753764 converts to "Thu Mar 8 16:24:44 PST 2012" (works in some cases).

Here are some online converters:
http://www.onlineconversion.com/unix_time.htm
http://en.wikipedia.org/wiki/Unix_time

Please let me know if you have any questions.

Adam
EKM METERING
http://www.ekmmetering.com
831.425.7371
Post Reply