Show / Hide Table of Contents

Class Int64Extensions

Extension methods for System.Int64.

Inheritance
System.Object
Int64Extensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GlitchedPolygons.ExtensionMethods
Assembly: UnityScriptsLibrary.dll
Syntax
public static class Int64Extensions

Methods

| Improve this Doc View Source

FromUnixTimeMilliseconds(Int64)

Converts a Unix timestamp (milliseconds since 1970-01-01 00:00:00.000 UTC) to a System.DateTime (in UTC).

Declaration
public static DateTime FromUnixTimeMilliseconds(this long timestamp)
Parameters
Type Name Description
System.Int64 timestamp

The Unix timestamp to convert.

Returns
Type Description
System.DateTime

The converted System.DateTime in UTC.

| Improve this Doc View Source

FromUnixTimeSeconds(Int64)

Converts a Unix timestamp (seconds since 1970-01-01T00:00:00Z) to a UTC System.DateTime.

Declaration
public static DateTime FromUnixTimeSeconds(this long timestamp)
Parameters
Type Name Description
System.Int64 timestamp

The Unix timestamp to convert.

Returns
Type Description
System.DateTime

The converted System.DateTime in UTC.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX