mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 01:22:50 -05:00
organization user apis, hardening, completeness
This commit is contained in:
@ -84,9 +84,14 @@ namespace Bit.Core.Utilities
|
||||
return cert;
|
||||
}
|
||||
|
||||
public static long EpocMilliseconds(DateTime date)
|
||||
public static long ToEpocMilliseconds(DateTime date)
|
||||
{
|
||||
return (long)Math.Round((date - _epoc).TotalMilliseconds, 0);
|
||||
}
|
||||
|
||||
public static DateTime FromEpocMilliseconds(long milliseconds)
|
||||
{
|
||||
return _epoc.AddMilliseconds(milliseconds);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user