I'm trying to get the Julian Date for the 'current time'/timezone in
the Android device.
I'm running the code below, using the built in getJulianDay function,
but it appears the Julian date being calculated (var JD) is not
correct.

I'm getting values ~2440255 when I should be getting a value closer to
2455082

TimeZone tz = TimeZone.getDefault();
int JD = Time.getJulianDay((new Time()).toMillis(false),
tz.getRawOffset());

Any help is appreciated

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to