ParseUnixToDateTime Method (Int32) |
Converts javascript/Unix timestamp to DateTime
Namespace: MomentSharpAssembly: MomentSharp (in MomentSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static DateTime UnixToDateTime(
this int unixTimeStamp
)
<ExtensionAttribute>
Public Shared Function UnixToDateTime (
unixTimeStamp As Integer
) As DateTime
public:
[ExtensionAttribute]
static DateTime UnixToDateTime(
int unixTimeStamp
)
[<ExtensionAttribute>]
static member UnixToDateTime :
unixTimeStamp : int -> DateTime
Parameters
- unixTimeStamp
- Type: SystemInt32
TimeStamp in seconds
Return Value
Type:
DateTimeDateTime in UTC
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Int32. 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