Definition at line 3 of file Epoch.cs.
◆ Current()
static int Epoch.Current |
( |
| ) |
|
|
static |
Method to get seconds representation of current date
Definition at line 8 of file Epoch.cs.
10 DateTime epochStart =
new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
11 int currentEpochTime = (int)(DateTime.UtcNow - epochStart).TotalSeconds;
13 return currentEpochTime;
◆ GetTimerString()
static string Epoch.GetTimerString |
( |
int |
timeLeft | ) |
|
|
static |
Method to get string representation of time left for current game sequence.
Definition at line 19 of file Epoch.cs.
22 int minutes = timeLeft / 60;
23 int seconds = timeLeft - (minutes * 60);
25 string timer = (minutes<10?
"0":
"") + minutes +
" : " + (seconds<10?
"0":
"") + seconds;