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.
哪些.NET函数允许时间单位之间的转换?
.NET
例如:如果我有一个Integer我知道以分钟为单位的持续时间,那么.NET将该数字转换为毫秒的最佳方法是什么?
Integer
Dim durationInMinutes as Integer = 10 Dim durationInMilliseconds As Integer = <???>(10); // what is the function to use here?
int minutes = 5; int milliseconds = TimeSpan.FromMinutes(minutes).TotalMilliseconds;