ch.ethz.mxquery.datamodel
Class MXQueryTime
java.lang.Object
ch.ethz.mxquery.datamodel.MXQueryTime
public class MXQueryTime
- extends java.lang.Object
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
MXQueryTime
public MXQueryTime(MXQueryDateTime dt)
MXQueryTime
public MXQueryTime(java.lang.String input)
throws MXQueryException
- Throws:
MXQueryException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
equals
public boolean equals(MXQueryTime d)
unequals
public boolean unequals(MXQueryTime d)
compareTo
public int compareTo(MXQueryTime d)
- Compares 2 Time values
- Parameters:
d
- Time values to compare with
- Returns:
- 0 if the argument Time is equal to this Time
a value less than 0 if this Time is before the Time argument
a value greater than 0 if this Time is after the Time argument
addDuration
public MXQueryTime addDuration(MXQueryDayTimeDuration d)
subtractDuration
public MXQueryTime subtractDuration(MXQueryDayTimeDuration d)
subtract
public MXQueryDayTimeDuration subtract(MXQueryTime t)
adjustTimeZone
public MXQueryTime adjustTimeZone(MXQueryDayTimeDuration d)
getHours
public int getHours()
- getters
getMinutes
public int getMinutes()
getSecondsWithMili
public MXQueryDouble getSecondsWithMili()
throws MXQueryException
- Throws:
MXQueryException
getSeconds
public int getSeconds()
getMiliseconds
public int getMiliseconds()
getTimeZone
public java.lang.String getTimeZone()
getTimezoneInMinutes
public final int getTimezoneInMinutes()
getTimezoneAsDuration
public final MXQueryDayTimeDuration getTimezoneAsDuration()
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich