Parse date of LastConnected

SOLVED
Michael-873494
Here to help

Parse date of LastConnected

When I query, using the API, the lastConnected date/time of any given device enrolled in systems manager, I get a sring of numbers instead of a date (e.g. "1523636756"). I am certain this represents a date/time, but how do I parse it? I use Powershell, but I don't think the answer has to be specific to PS.

1 ACCEPTED SOLUTION
PhilipDAth
Kind of a big deal
Kind of a big deal

2 REPLIES 2
PhilipDAth
Kind of a big deal
Kind of a big deal

It is probably a Unix time epoch.

https://en.wikipedia.org/wiki/Unix_time

 

This article has several tips to process epoch time in powershell.

https://stackoverflow.com/questions/4192971/in-powershell-how-do-i-convert-datetime-to-unix-time

MerakiDave
Meraki Employee
Meraki Employee

Hi Michael,
Most likely the number of seconds since Unix epoch time.
https://www.epochconverter.com/
Get notified when there are additional replies to this discussion.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.