Likewise, to convert a date to ticks, use this approach:复制代码
- [DateTime]::FromFileTime(635312826377934727)
PS C:\> (Get-Date -Date '2014-04-01 18:22:12').Ticks 635319733320000000 |
PS C:\> Get-Date(635312826377934727) 2014年3月24日 18:30:37 |
欢迎光临 批处理之家 (http://www.bathome.net/) | Powered by Discuz! 7.2 |