各位大大
請教一下C#的Datetime ticks該怎麼轉換到 java的去呢??
找了一些文章 C# & JAVA的基準值不一樣
也找了另一個函式庫Joda-time,但不曉得如何轉換
故上來請教高手
謝謝
C#範例
static string GetDateTime()
{
DateTime now = DateTime.Now;
DateTime withoutYear =
new DateTime(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Se
co
long t = withoutYear.Ticks / (long)20000000;
return ((UInt32)t).ToString("X000000");
}