- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to solution.
- Labels:
-
Dashboard API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
