如何使用 PowerShell 将人类可读的时间戳转换为 Unix 时间戳?

问题描述:

我有以下 csv 文件格式,其中包含一些工具信息和正常时间.

I have a following csv file format, which contains some tool information and normal time.

工具"、TimeRaised"、Abod"、14 年 6 月 27 日上午 8:32:45"、测试"、14 年 6 月 27 日8:30:42 AM""分组"、"27-Jun-14 8:22:01 AM""Tize"、"27-Jun-14 8:15:50上午" "电源线","27-Jun-14 8:00:52 AM"

"Tool","TimeRaised" "Abod","27-Jun-14 8:32:45 AM" "Test","27-Jun-14 8:30:42 AM" "Groupd","27-Jun-14 8:22:01 AM" "Tize","27-Jun-14 8:15:50 AM" "COrd","27-Jun-14 8:00:52 AM"

我想使用 PowerShell cmdlet 将该正常时间转换为 Unix 时间戳格式.但我不知道该使用哪个 powershell cmdlet.

I want to convert that normal time to Unix timestamp format by using PowerShell cmdlet. But I dont know which powershell cmdlet to use.

PS > Get-Date -date "27-Jun-14 8:00:52 AM" -UFormat %s
1403856052