This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design 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???

 
jacob deiter
Ranch Hand
Posts: 584
  • 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
Pie
Posts: 20510
54
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: 48645
56
  • 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
Pie
Posts: 20510
54
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: 48645
56
  • 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