C# 클래스 CSharpAnalytics.Protocols.EpochTime

Represents a date and time expressed as the number of seconds since 00:00 on 01-Jan-1970.
파일 보기 프로젝트 열기: TechSmith/CSharpAnalytics 1 사용 예제들

공개 메소드들

메소드 설명
EpochTime ( DateTimeOffset offset ) : System

Create a new EpochTime from an existing DateTimeOffset.

EpochTime ( ulong secondsSince1970 ) : System

Create a new EpochTime with a given number of seconds since the start of 1970.

ToDateTimeOffset ( ) : DateTimeOffset

Return an EpochTime as a DateTimeOffset.

ToString ( ) : string

Return a string containing the number of seconds since 1970.

ToUtcString ( ) : string

Return a string with the EpochTime represented as a UTC date format.

TryParseSeconds ( string seconds, EpochTime &epochTime ) : bool

Try and parse a string representing seconds into an EpochTime.

메소드 상세

EpochTime() 공개 메소드

Create a new EpochTime from an existing DateTimeOffset.
public EpochTime ( DateTimeOffset offset ) : System
offset DateTimeOffset
리턴 System

EpochTime() 공개 메소드

Create a new EpochTime with a given number of seconds since the start of 1970.
public EpochTime ( ulong secondsSince1970 ) : System
secondsSince1970 ulong Number of seconds since the start of 1970.
리턴 System

ToDateTimeOffset() 공개 메소드

Return an EpochTime as a DateTimeOffset.
public ToDateTimeOffset ( ) : DateTimeOffset
리턴 DateTimeOffset

ToString() 공개 메소드

Return a string containing the number of seconds since 1970.
public ToString ( ) : string
리턴 string

ToUtcString() 공개 메소드

Return a string with the EpochTime represented as a UTC date format.
public ToUtcString ( ) : string
리턴 string

TryParseSeconds() 공개 정적인 메소드

Try and parse a string representing seconds into an EpochTime.
public static TryParseSeconds ( string seconds, EpochTime &epochTime ) : bool
seconds string String containing number of seconds since start of 1970.
epochTime EpochTime Output parameter containing new EpochTime
리턴 bool