Method | Description | |
---|---|---|
ToMilliseconds ( this dateTimeUnit ) : long |
Calculates the number of milliseconds in a given DateTimeUnit. For example, if the DateTimeUnit passed in is Days the unit multiplier would be 24*60*60*1000 = 86,400,000 (24 hours per day * 60 minutes per hour * 60 seconds per minute * 1,000 milliseconds per second).
|
|
ToSeconds ( this dateTimeUnit ) : long | ||
ToTimeSpan ( this dateTimeUnit ) : System.TimeSpan |
public static ToMilliseconds ( this dateTimeUnit ) : long | ||
dateTimeUnit | this | |
return | long |
public static ToSeconds ( this dateTimeUnit ) : long | ||
dateTimeUnit | this | |
return | long |
public static ToTimeSpan ( this dateTimeUnit ) : System.TimeSpan | ||
dateTimeUnit | this | |
return | System.TimeSpan |