Copyright © Rasmus Sten and contributors, 1997-2004

nu.dll.lyskom
Class KomTime

java.lang.Object
  |
  +--nu.dll.lyskom.KomTime
All Implemented Interfaces:
java.io.Serializable

public class KomTime
extends java.lang.Object
implements java.io.Serializable

Represents the LysKOM data type "Time".

See Also:
Serialized Form

Field Summary
static int ITEM_SIZE
          The number of KomToken items that this data type is made of.
 
Constructor Summary
KomTime()
          Constructs a KomTime object representing the current system time.
KomTime(int sec, int min, int hours, int mday, int month, int year, int weekday, int yearday, int isdst)
          Constructs a KomTime object representing the specified time.
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true if the supplied object is of type KomTime and represents the same time as this object.
 java.util.Date getTime()
          Returns a java.util.Date object representing this object's time, according to the Gregorian calendar.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ITEM_SIZE

public static int ITEM_SIZE
The number of KomToken items that this data type is made of.

Constructor Detail

KomTime

public KomTime(int sec,
               int min,
               int hours,
               int mday,
               int month,
               int year,
               int weekday,
               int yearday,
               int isdst)
Constructs a KomTime object representing the specified time.

Parameters:
sec - Wall clock seconds
min - Wall clock minutes
hours - Wall clock hours (24hr format)
mday - Day within month, starting with 1
month - Month of year, with January being zero
year - Years since 1900
weekday - Day of week, Sunday being zero
yearday - Day of year, starting with zero
isdst - '1' if the time is daylight savings time

KomTime

public KomTime()
Constructs a KomTime object representing the current system time.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Returns true if the supplied object is of type KomTime and represents the same time as this object.

Overrides:
equals in class java.lang.Object

getTime

public java.util.Date getTime()
Returns a java.util.Date object representing this object's time, according to the Gregorian calendar.


Copyright © Rasmus Sten and contributors, 1997-2004