C# 클래스 DataServer.ExtensionMethods

파일 보기 프로젝트 열기: TNOCS/csTouch

공개 메소드들

메소드 설명
FromEpoch ( this unixTime ) : System.DateTime

Long extension method to convert a Unix epoch time to a standard C# DateTime object.

ToEpoch ( this dt ) : long

Date Time extension method to return a unix epoch time as a long

ToRelativeDate ( this start, System.DateTime input ) : string

메소드 상세

FromEpoch() 공개 정적인 메소드

Long extension method to convert a Unix epoch time to a standard C# DateTime object.
public static FromEpoch ( this unixTime ) : System.DateTime
unixTime this
리턴 System.DateTime

ToEpoch() 공개 정적인 메소드

Date Time extension method to return a unix epoch time as a long
public static ToEpoch ( this dt ) : long
dt this
리턴 long

ToRelativeDate() 공개 정적인 메소드

public static ToRelativeDate ( this start, System.DateTime input ) : string
start this
input System.DateTime
리턴 string