caltool.schedule
Class Time

java.lang.Object
  extended by caltool.schedule.Time

public class Time
extends java.lang.Object

A Time consists of an hour, minute, and AM or PM indicator. A time value is expressed using a 12-hour or 24-hour clock style. The clock style is set as an option by the user. If the clock style is 24-hour, the AmOrPm indicator is nil.

Version:
14jan11
Author:
Gene Fisher (gfisher@calpoly.edu)

Field Summary
(package private)  AmOrPm amOrPm
          Standard suffix used in 12-hour time value
(package private)  int hour
          The hour component of a time value, between 1 and 12 or 0 and 24 based on the clock style in use
(package private)  int minute
          The minute component of a time value, between 0 and 59
 
Constructor Summary
Time()
          Construct an empty time value.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hour

int hour
The hour component of a time value, between 1 and 12 or 0 and 24 based on the clock style in use


minute

int minute
The minute component of a time value, between 0 and 59


amOrPm

AmOrPm amOrPm
Standard suffix used in 12-hour time value

Constructor Detail

Time

public Time()
Construct an empty time value.