Replies: 2 comments
-
Datetimes returned from the API as UnixTime are formatted to be readable - this is all handled in the [ |
Beta Was this translation helpful? Give feedback.
-
My way around it is to just create a custom column a use the select command to convert the time $CustomCoulum = @{'Name'='FriendlyTime';E={(get-date 1/1/70).addseconds($_.UNIXTIMEHEADERHERE) }} |
Beta Was this translation helpful? Give feedback.
-
It would be nice if the timestamps would be converted to normal date time.
eg. in Get-PASComponentDetails.ps1
$result | Select-Object -ExpandProperty ComponentsDetails | select ComponentIP,ComponentUserName,ComponentVersion,IsLoggedOn,@{Name="LastLogonDate";Expression={((Get-Date 01.01.1970)+([System.TimeSpan]::fromseconds($_.LastLogonDate))).ToString("yyyy-MM-dd HH:mm:ss")}}
Beta Was this translation helpful? Give feedback.
All reactions