Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想得到一个提示,如何将 datetime -uFormat %T(例如 08:45:00)转换为 double 或像 8,75 hours 这样的字符串。
非常感谢您!
$date = Get-Date '{0:HH},{1:N0} hours' -f $date,($date.Minute/60*100)