org.deri.iris.api.terms.concrete
Interface ITime

All Superinterfaces:
Comparable<ITerm>, IConcreteTerm, ITerm
All Known Implementing Classes:
Time

public interface ITime
extends IConcreteTerm

This is a time representation.

ATTENTION: internally a Calendar is used, so month and hour are zero-based.

ATTENTION: set the correct timezone


Method Summary
 double getDecimalSecond()
          Return the complete floating point representation of the seconds components.
 int getHour()
          Returns the hour of the day.
 int getMillisecond()
          Returns the milliseconds of the second.
 int getMinute()
          Returns the minute of the hour.
 int getSecond()
          Returns the seconds of the minute.
 TimeZone getTimeZone()
          Returns the Timezone.
 XMLGregorianCalendar getValue()
          Return the wrapped type.
 
Methods inherited from interface org.deri.iris.api.terms.IConcreteTerm
getDatatypeIRI, toCanonicalString
 
Methods inherited from interface org.deri.iris.api.terms.ITerm
isGround
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getValue

XMLGregorianCalendar getValue()
Return the wrapped type.

Specified by:
getValue in interface ITerm
Returns:
The term value.

getHour

int getHour()
Returns the hour of the day.

Returns:
the hours (zero-based)

getMinute

int getMinute()
Returns the minute of the hour.

Returns:
the minutes

getSecond

int getSecond()
Returns the seconds of the minute.

Returns:
the seconds

getMillisecond

int getMillisecond()
Returns the milliseconds of the second.

Returns:
the milliseconds

getDecimalSecond

double getDecimalSecond()
Return the complete floating point representation of the seconds components.

Returns:
Decimal seconds

getTimeZone

TimeZone getTimeZone()
Returns the Timezone.

Returns:
the timezone