Adam B wrote:
> Thanks for the quick response, Stephen.  The issue is that I don't want 
> to query any particular date field of DateTime but rather I essentially 
> want to create a unix time value that represents the fields.  Let me ask 
> in a different way:
> 
> Current time in Australia is 2008-6-30 14:05:00.  The unix time value 
> for this is 1214834700.  I want to know the current unix time value in 
> Los Angeles.
> 
> Of course I'd like a generalized solution:
> 
> int unixTimeSomewhereElse(int localUnixTime, DateTimeZone localTimeZone, 
> DateTimeZone targetTimeZone)
> {
>   ???
> }

If by Unix time you mean the Long integer value, the value is always the 
same, because it is defined as  "the difference, measured in 
milliseconds, between the current time and midnight, January 1, 1970 UTC."

-- 
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#currentTimeMillis()

This is one of many places which remind us that it is a count from 
***UTC*** not from local midnight on 1/1/1970.

-Paul



-------------------------------------------------------------------------
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