final update
This commit is contained in:
14
Website/LOC.Core/TimeUtil.cs
Normal file
14
Website/LOC.Core/TimeUtil.cs
Normal file
@ -0,0 +1,14 @@
|
||||
namespace LOC.Core
|
||||
{
|
||||
using System;
|
||||
|
||||
public static class TimeUtil
|
||||
{
|
||||
public static double GetCurrentMilliseconds()
|
||||
{
|
||||
var staticDate = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
|
||||
var timeSpan = DateTime.UtcNow - staticDate;
|
||||
return timeSpan.TotalMilliseconds;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user