Hello,

I'm new to Joda-time so bear with me.  I've got code converting a DateTime
from one time zone to another like so:

DateTime dtAus = new DateTime(2008, 6, 30, 14, 5, 0, 0,
DateTimeZone.forID("Australia/Sydney"));
System.out.println(dtAus.getMillis());  //1214798700000
DateTime dtPST = dtAus.withZone(DateTimeZone.forID("America/Los_Angeles"));
System.out.println(dtPST.getMillis());  //still 1214798700000

The milliseconds value is the same no matter what time zone the DateTime
object is using.  How then do I get the milliseconds that represents
2008-6-29 21:5:00, (the time in America/Los_Angeles when it's 2008-6-30
14:05:00 in Australia/Sydney)?

Much thanks.
- Adam
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to