Click or drag to resize
ParseUnixToDateTime Method (Double)
Converts javascript/Unix timestamp to DateTime

Namespace: MomentSharp
Assembly: MomentSharp (in MomentSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static DateTime UnixToDateTime(
	this double unixTimeStamp
)

Parameters

unixTimeStamp
Type: SystemDouble
TimeStamp in seconds

Return Value

Type: DateTime
DateTime in UTC

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Double. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also