gvsu/cs621/proj1/Timestamp.java
josh 6aad5842fd cs621: proj1: added javadoc to base Clock .java files
git-svn-id: svn://anubis/gvsu@8 45c1a28c-8058-47b2-ae61-ca45b979098e
2008-02-03 04:11:53 +00:00

26 lines
589 B
Java

/**
* This class holds a time value consisting of hours, minutes, and seconds.
*/
class Timestamp
{
// data fields
int hrs;
int mins;
int secs;
/**
* This method updates the hours, minutes, and seconds values
* associated with the Timestamp object.
*/
void fillTimes()
{
java.util.Calendar now;
now = java.util.Calendar.getInstance();
hrs = now.get(java.util.Calendar.HOUR_OF_DAY);
mins = now.get(java.util.Calendar.MINUTE);
secs = now.get(java.util.Calendar.SECOND);
}
}