cancel
Showing results for 
Search instead for 
Did you mean: 

Parse date of LastConnected

SOLVED
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

Accepted Solutions
Kind of a big deal

Re: Parse date of LastConnected

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

2 REPLIES
Kind of a big deal

Re: Parse date of LastConnected

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

Meraki Employee

Re: Parse date of LastConnected

Hi Michael,
Most likely the number of seconds since Unix epoch time.
https://www.epochconverter.com/