C# 클래스 SpeakFriend.Utilities.DateTimeExtensions

파일 보기 프로젝트 열기: teamaton/speak-lib

공개 메소드들

메소드 설명
EndOfDay ( this dateTime ) : System.DateTime

Returns a new DateTime object with the same date part as the given dateTime but the time set to 23:59:59.999.

StartOfDay ( this dateTime ) : System.DateTime

Same as DateTime.Date. Returns a new DateTime object with the same date part as the given dateTime but the time set to 00:00:00.

ToMilliseconds ( this dateTime ) : long

Returns the number of milliseconds that elapsed from 01/01/1970 to the given dateTime.

메소드 상세

EndOfDay() 공개 정적인 메소드

Returns a new DateTime object with the same date part as the given dateTime but the time set to 23:59:59.999.
public static EndOfDay ( this dateTime ) : System.DateTime
dateTime this
리턴 System.DateTime

StartOfDay() 공개 정적인 메소드

Same as DateTime.Date. Returns a new DateTime object with the same date part as the given dateTime but the time set to 00:00:00.
public static StartOfDay ( this dateTime ) : System.DateTime
dateTime this
리턴 System.DateTime

ToMilliseconds() 공개 정적인 메소드

Returns the number of milliseconds that elapsed from 01/01/1970 to the given dateTime.
public static ToMilliseconds ( this dateTime ) : long
dateTime this
리턴 long