in reply to A value that stays a value (for some time)

How about just int(time / (10 * 60 * 60))?

Update: Oops, that's 10 hours. 10 minutes would just be 10*60. Thanks, freakingwildchild!

Replies are listed 'Best First'.
Re^2: A value that stays a value (for some time)
by freakingwildchild (Scribe) on Jun 18, 2006 at 17:19 UTC
    10 * 60 * 60 would give 36000; thats an awfull long time for the "ticket" to expire :)