in reply to Subtract Hours
You have to know if the first time is earlier than the second one. You could either ask for the date as well or assume that the first time entered is the earlier one and then handle your second case differently.
Without the date you will always have to make some assumptions about your input - it could be more than 24 hours between the two times ...
cheers
si_lence
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Subtract Hours
by ikegami (Patriarch) on Jun 22, 2009 at 14:33 UTC | |
by Limbic~Region (Chancellor) on Jun 22, 2009 at 14:40 UTC | |
by ikegami (Patriarch) on Jun 22, 2009 at 15:13 UTC |
In Section
Seekers of Perl Wisdom