C# 클래스 Rolcore.DateTimeUnitExtensions

Extension methods for DateTimeUnit.
파일 보기 프로젝트 열기: Rollins/Rolcore

공개 메소드들

메소드 설명
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

메소드 상세

ToMilliseconds() 공개 정적인 메소드

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).
public static ToMilliseconds ( this dateTimeUnit ) : long
dateTimeUnit this
리턴 long

ToSeconds() 공개 정적인 메소드

public static ToSeconds ( this dateTimeUnit ) : long
dateTimeUnit this
리턴 long

ToTimeSpan() 공개 정적인 메소드

public static ToTimeSpan ( this dateTimeUnit ) : System.TimeSpan
dateTimeUnit this
리턴 System.TimeSpan