Mineplex2018-withcommit/Website/LOC.Core/TimeUtil.cs

15 lines
350 B
C#
Raw Normal View History

2013-08-27 17:14:08 +02:00
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;
}
}
}