Astra Unity 2.6.6
Astra Unity Plugin
Astra.Utils.Epoch Class Reference

Static Public Member Functions

static int Current ()
 Get the current timestamp as seconds from Epoch (Unix time)
 
static int SecondsElapsed (int t1)
 Time since a given time in seconds from Epoch (Unix time) More...
 
static int SecondsElapsed (int t1, int t2)
 Time between two Unix Timestamps (seconds from epoch) More...
 

Detailed Description

Unix Timestamp helpers

Member Function Documentation

◆ SecondsElapsed() [1/2]

static int Astra.Utils.Epoch.SecondsElapsed ( int  t1)
inlinestatic

Time since a given time in seconds from Epoch (Unix time)

Parameters
t1Epoch timestamp to get the elapsed time from

◆ SecondsElapsed() [2/2]

static int Astra.Utils.Epoch.SecondsElapsed ( int  t1,
int  t2 
)
inlinestatic

Time between two Unix Timestamps (seconds from epoch)

Parameters
t1First timestamp
t2Second timestamp

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