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

All Superinterfaces:
Comparable<ITerm>, IConcreteTerm, ITerm
All Known Subinterfaces:
IDateTimeStamp
All Known Implementing Classes:
DateTime, DateTimeStamp

public interface IDateTime
extends IConcreteTerm

This is a representation of the builtin datatype IDateTime.

Remark: IRIS supports datatypes according to the standard specification for primitive XML Schema datatypes.


ATTENTION: internally a Calendar is used, so setting month and hour is zero-based.
ATTENTION: set the correct timezone


Method Summary
 int getDay()
          Returns the day of the month.
 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 getMonth()
          Returns the month of the year.
 int getSecond()
          Returns the seconds of the minute.
 TimeZone getTimeZone()
          Returns the Timezone
 XMLGregorianCalendar getValue()
          Return the wrapped type.
 int getYear()
          Returns the year.
 
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.

getYear

int getYear()
Returns the year.

Returns:
the year

getMonth

int getMonth()
Returns the month of the year.

Returns:
the month (zero-based)

getDay

int getDay()
Returns the day of the month.

Returns:
the day

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