Convert From Unix Time
[timezone]::CurrentTimeZone.ToLocalTime(([datetime]'1/1/1970').AddSeconds($UnixTime))
Convert To Unix Time
[int][double]::Parse((Get-Date ($date).touniversaltime() -UFormat %s))