Table of Contents

Class EpochTimeExtensions

Namespace
Sportradar.OddsFeed.SDK.Common.Extensions
Assembly
Sportradar.OddsFeed.SDK.dll

Class defining extension methods for epoch date time

public static class EpochTimeExtensions
Inheritance
EpochTimeExtensions
Inherited Members

Methods

FromEpochTime(long)

Convert long epoch time to DateTime

public static DateTime FromEpochTime(this long epochTime)

Parameters

epochTime long

The UNIX time

Returns

DateTime

DateTime

ToEpochTime(DateTime)

Convert DateTime to the epoch time (in seconds)

public static long ToEpochTime(this DateTime date)

Parameters

date DateTime

The date

Returns

long

System.Int64