• Post Reply Bookmark Topic Watch Topic
  • New Topic

add 5 minutes to date  RSS feed

 
Jordan Smith
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!

i am trying to add 20 minutes to a date object like this:


but in the log i see:
time is Sun Oct 25 03:52:01 IST 2009
time plus 5 minutes is Sun Oct 25 04:42:01 IST 2009 current time is Sun Oct 25 03:56:46 IST 2009

what is incorrect about the way that i add the 5 minutes?
 
Jordan Smith
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry guys
it works well
the globalObject.getSessionOut() returned 50 instead of 5..
 
Campbell Ritchie
Marshal
Posts: 55761
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done sorting it out yourself and telling us the solution.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!