File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Replacement of deprecated constructor

 
mohan shetty
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
I have a deprecated constructor from class TimeStamp.that is public Timestamp(int year,int month,int date,int hour,int minute, int second,int nano).I need to replace this method with a suitable method or a constructor.can any one sujjest me what i need to do.I even know that i need use constructor public Timestamp(long millis).But what about the year,month,date...etc parameters which i need to get a long value from them.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the java.util.Calendar object for this. Something like:

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic