I am parsing a SQLite database using the PowerShell SQLite module , and several return values ββare created and modified, both of which are in Unix time.
What I would like to do is transform it into "human time" in one way or another. I deleted some other SQL queries for readability.
Import-Module SQLite
mount-sqlite -name GoogleDrive -dataSource E:\Programming\new.db
$cloud_entry = Get-ChildItem GoogleDrive:\cloud_entry
foreach ($entry in $cloud_entry)
{
$entry.created
}
The output looks like a large column of Unix timestamps:
1337329458
Update. I ended up choosing the following:
$ctime = $entry.created
[datetime]$origin = '1970-01-01 00:00:00'
$origin.AddSeconds($ctime)
source
share