I'm writing a script to check what is the last time a snapmirror relationship has been updated using PowerChell over cluster mode netapps.
I found that using snapmirror show on the CLI I could see "last transfer end timestamp" and there is also a property with the same name using PowerShell using:
get-ncsnapmirror | select lasttransferendtimestamp
Problem is at the CLI it shows a nice date (08/23 22:05:51) and using PowerShell all I get is a number (1471979101). Does anyone know how I could translate this number to a DateTime
format? (.ToDateTime()
didn't work)