Method ToDateTime
ToDateTime(Double)
Returns a new System.DateTime instance representing the date & time the specified timestamp represents.
Declaration
public static DateTime ToDateTime(this double timestamp)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | timestamp | A double value that is a unix timestamp. |
Returns
| Type | Description |
|---|---|
| System.DateTime | A System.DateTime that is equivalent to the provided timestamp. |
ToDateTime(Int64)
Returns a new System.DateTime instance representing the date & time the specified timestamp represents.
Declaration
public static DateTime ToDateTime(this long timestamp)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | timestamp | A long value that is a unix timestamp. |
Returns
| Type | Description |
|---|---|
| System.DateTime | A System.DateTime that is equivalent to the provided timestamp. |