replace sun module

This commit is contained in:
UbitUmarov
2020-06-11 00:01:43 +01:00
parent 9ce70be5ce
commit 13ed40d9f6
10 changed files with 159 additions and 689 deletions

View File

@@ -1058,7 +1058,14 @@ namespace OpenSim.Framework
public static int UnixTimeSinceEpoch()
{
return ToUnixTime(DateTime.UtcNow);
TimeSpan t = DateTime.UtcNow - UnixEpoch;
return (int)t.TotalSeconds;
}
public static ulong UnixTimeSinceEpoch_uS()
{
TimeSpan t = DateTime.UtcNow - UnixEpoch;
return (uint)(t.TotalMilliseconds * 1000);
}
public static int ToUnixTime(DateTime stamp)