This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set time 11:00 PM using Date or GregorianCalendar

 
chaohua wang
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

I use Timer to set up TimerTask.
it will start at a speificed time, for example 11:00 PM everyday.
Could you tell me how to set time 11:00 PM using Date or GregorianCalendar.
Looks like no method set(hour, miunte,second) in these Class.
Thank you for your help!

Chaohua
 
Stefan Evans
Bartender
Posts: 1640
9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Calendar has a generic set method for any field you like.
ie

[ February 15, 2006: Message edited by: Stefan Evans ]
 
chaohua wang
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic