我需要帮助迁移一种 j法:
(int)System.currentTimeMillis(); //result -186983989 (java) return diferent values
But in C# return alway the same value:
DateTime Jan1st1970 = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
TimeSpan span = DateTime.UtcNow - Jan1st1970;
Int32 resultado = (int)span.TotalMilliseconds; //result is always -2147483648 and i need same as java
短视中很少见到显示正确价值,但在执行中则见<代码>resultado<>/code>。 a)
I need this -186983989 result, same as java.