Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

People suggest using Date class is deprecated, then for handling Date which class should be used???  RSS feed

 
jacob deiter
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
People suggest using Date class is deprecated, then for handling Date which class should be used???
 
Rob Spoor
Sheriff
Posts: 20895
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
People who say this are Joda Time users.

Date (and Calendar) are not deprecated at all, but some say that Joda Time is easier to use. I can't confirm since Date and Calendar have always done what I needed.
 
Campbell Ritchie
Sheriff
Posts: 53773
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The java.util.Date class has a deprecated constructor. That must be what they mean.
 
Rob Spoor
Sheriff
Posts: 20895
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah yes, and almost all of its getter / setter methods are deprecated. Calendar should be used for that. So not but Also, not but
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Us JodaTime users don't say they're deprecated, just that they're heinous ;)
 
Campbell Ritchie
Sheriff
Posts: 53773
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:Us JodaTime users don't say they're deprecated, just that they're heinous ;)
Probably a more accurate quote :wink:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!