Authlete
TimeUtility Class Reference

Time utility. More...

Static Public Member Functions

static long CurrentTimeMillis ()
 Get the milliseconds since the Unix epoch (1970-Jan-1). More...
 
static long CurrentTimeSeconds ()
 Get the seconds since the Unix epoch (1970-Jan-1). More...
 

Static Public Attributes

static readonly DateTime Epoch
 The Unix epoch (1970-Jan-1). More...
 

Detailed Description

Time utility.

Member Function Documentation

◆ CurrentTimeMillis()

static long CurrentTimeMillis ( )
inlinestatic

Get the milliseconds since the Unix epoch (1970-Jan-1).

Returns
The milliseconds since the Unix epoch (1970-Jan-1).

◆ CurrentTimeSeconds()

static long CurrentTimeSeconds ( )
inlinestatic

Get the seconds since the Unix epoch (1970-Jan-1).

Returns
The seconds since the Unix epoch (1970-Jan-1).

Member Data Documentation

◆ Epoch

readonly DateTime Epoch
static
Initial value:
=
new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)

The Unix epoch (1970-Jan-1).


The documentation for this class was generated from the following file: