Class DateTimeExtensions

The DateTimeExtensions class applies helper methods to support interations with DateTime values.

Inheritance
System.Object
DateTimeExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Social.Common.Rest
Assembly: EPiServer.Social.Common.Rest.dll
Version: 1.5.4
Syntax
public static class DateTimeExtensions

Methods

AsMillisecondsFromUnixEpoch(DateTime)

Returns a value representing the total number of milliseconds that have elapsed between the Unix epoch and this DateTime.

Declaration
public static ulong AsMillisecondsFromUnixEpoch(this DateTime dateTime)
Parameters
Type Name Description
System.DateTime dateTime

DateTime value to evaluate

Returns
Type Description
System.UInt64

Milliseconds elapsed since the Unix epoch

arrow_upward