📜  currentTimeMillis c# 代码示例

📅  最后修改于: 2022-03-11 14:49:13.439000             🧑  作者: Mango

代码示例1
private static readonly DateTime begin = new DateTime
    (1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);

public static long CurrentTimeMillis()
{
    return (long) (DateTime.UtcNow - begin).TotalMilliseconds;
}