Supercell.GUT/Supercell.GUT.Server/Util/TimeUtil.cs
BreadDEV 281d2789ea [v0.1.0] database implementation
not finished. early wip state
2024-03-06 22:00:12 +07:00

11 lines
269 B
C#

namespace Supercell.GUT.Server.Util;
public static class TimeUtil
{
private static readonly DateTime s_unixTime = new(1970, 1, 1);
public static int GetCurrentTimestamp()
{
return (int)DateTime.UtcNow.Subtract(s_unixTime).TotalSeconds;
}
}