• 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

 
Ranch Hand
Posts: 588
  • 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???
 
Sheriff
Posts: 21204
87
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.
 
Marshal
Posts: 57276
175
  • 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: 21204
87
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
 
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
Marshal
Posts: 57276
175
  • 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:
 
Bring me the box labeled "thinking cap" ... and then read this tiny ad:
The WEB SERVICES and JAX-RS Course
https://coderanch.com/t/690789/WEB-SERVICES-JAX-RS
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!