I am parsing an SQLite database using the PowerShell SQLite module, and a couple of the return values are created and modified, both of which are in Unix time.
What
I wanted to be sure that I was calculating from UTC, so I added the SpecifyKind:
SpecifyKind
$epochStart = New-Object -Type DateTime -ArgumentList 1970, 1, 1, 0, 0, 0, 0 $epochStart = [DateTime]::SpecifyKind($epochStart,[DateTimeKind]::Utc) $DateTimeUTC = $epochStart.AddSeconds($UnixTimestamp)