J. B. Rainsberger wrote:
Stephen Colebourne wrote:
2) The toXxx() methods on Instant.
Instant does have a time zone (as pointed out below) but this is
really an artifact of implementing the interface. In practice,
Instant should be thought of as having no time zone.
I find this curious. If an Instant should have no time zone, then how
do you describe the instant 10/29/2006 1:34:32.192 EDT? Is it just
10/29/2006 02:34:32.192, meaning sometime during the 3rd hour of the day?
Its a semantic distinction in my mind. Instant represents a number of
milliseconds from 1970-01-01Z. We currently represent the Instant as
being in the UTC time zone, but in concept its 'duration from the epoch'.
> how do you describe the instant 10/29/2006 1:34:32.192 EDT ?
With a DateTime, not an Instant.
> Is it just 10/29/2006 02:34:32.192
No, as that is a floating, non-time-zone time.
Stephen
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest