FileDocCategorySizeDatePackage
TimeStamp.javaAPI DocExample608Thu Feb 26 20:15:02 GMT 1998None

TimeStamp

public class TimeStamp extends Object

Fields Summary
private int
hr
private int
min
private int
sec
Constructors Summary
public TimeStamp(int h, int m, int s)

	hr = h;
		min = m;
		sec = s;
	
Methods Summary
public intgetHour()

  return hr;
	
public intgetMin()

  return min;
	
public intgetSec()

  return sec;
	
public java.lang.StringtoString()

  String s = "";
	   if( hr < 10 )
	   {  s += "0";
	   }
	   s += (hr + ":");
	   if( min < 10 )
	   {  s += "0";
	   }
	   s += (min + ":");
	   if( sec < 10 )
	   {  s += "0";
	   }
	   s += sec;
	   return s;