Re: How can I use Operand (+ , - ) with Time



On 01/15/2012 02:45 PM, Jeff Higgins wrote:
On 01/15/2012 01:31 PM, Lew wrote:
[snip]

That tends to cause trouble. It's better to use 'java.util.Calendar' and
its friends prior to Java 7, and the new time types for 7+.

I've scanned the Release Notes and API documentation for Oracle's Java
SE 7 and have been unable to find "new time types for 7+". Will you
provide pointers for me?
Thanks.

After some more digging I find JSR 310: Date and Time API.
I seems to be in the Early Draft Review stage.
<http://jcp.org/en/jsr/summary?id=310>
<http://sourceforge.net/apps/mediawiki/threeten/index.php?title=ThreeTen>

.



Relevant Pages

  • Re: How can I use Operand (+ , - ) with Time
    ... its friends prior to Java 7, and the new time types for 7+. ... I've scanned the Release Notes and API documentation for Oracle's Java SE 7 ...
    (comp.lang.java.programmer)
  • Re: How can I use Operand (+ , - ) with Time
    ... I've scanned the Release Notes and API documentation for Oracle's Java SE 7 and have been unable to find "new time types for 7+". ...
    (comp.lang.java.programmer)
  • Re: How can I use Operand (+ , - ) with Time
    ... a language that supports operator overloading (Java does not). ... It's better to use 'java.util.Calendar' and its friends prior to Java 7, and the new time types for 7+. ... Naive calculations based on double or int values for number of seconds in an hour will give you the wrong answer. ... Heck, just to get the right number of days in February requires some dancing. ...
    (comp.lang.java.programmer)
  • RE: JAVA un z/OS
    ... Additionally in the case of primitive integers, Java has to ... from Little Endian to Big Endian before sending the CPU instruction, ... than back after the instruction is done. ...
    (bit.listserv.ibm-main)
  • Re: StringBuilder Difficulties
    ... and my *guess* is that this is not horribly inefficient if the ... StringBuilder sb = new StringBuilder; ... that seems less optimal than trying to grok the Java mindset. ...
    (comp.lang.java.programmer)