各位大大
请教一下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");
}