How to convert Human readable timestamp to Unix timestamp by using PowerShell?

自闭症网瘾萝莉.ら 提交于 2020-01-10 05:31:06

问题


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

"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"

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


回答1:


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


来源:https://stackoverflow.com/questions/24467492/how-to-convert-human-readable-timestamp-to-unix-timestamp-by-using-powershell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!