【发布时间】:2018-07-12 08:55:09
【问题描述】:
我正在尝试提取有关上次创建的 Windows 还原点的信息。
到目前为止,我已经做了这个
$rpDate = Get-ComputerRestorePoint | Select-Object -Property CreationTime
$rpDesc = Get-ComputerRestorePoint | Select-Object -Property Description
$rpDate[-1]
$rpDesc[-1]
结果是“20180711124151.733659-000”,这是日期和时间,我认为是 unix 时间。通常,在 PHP 中我会创建一个函数($rpDate),但由于这是 powershell,我有点迷茫。
如何将 unix 时间转换为实际日期 + 时间戳?
【问题讨论】:
标签: function powershell date unix