Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

java time comparision

Status
Not open for further replies.

patnim17

Programmer
Jun 19, 2005
111
US
Hi,
I have a simple method in java that accepts the Hour, Min, Sec as parameters. I neeed to compare this time with the current time and find if it is before or after the curent time?

Is there a simpler way to do this in java..

the method looks lik this:

public boolean isTimeBefore(int hh24,int min, int sec){
//*...logic to check if the time passed is greater than the current time
}


thanks in advance
pat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top