MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.datamodel
Class MXQueryTime

java.lang.Object
  extended by ch.ethz.mxquery.datamodel.MXQueryTime

public class MXQueryTime
extends java.lang.Object


Constructor Summary
MXQueryTime(MXQueryDateTime dt)
           
MXQueryTime(java.lang.String input)
           
 
Method Summary
 MXQueryTime addDuration(MXQueryDayTimeDuration d)
           
 MXQueryTime adjustTimeZone(MXQueryDayTimeDuration d)
           
 int compareTo(MXQueryTime d)
          Compares 2 Time values
 boolean equals(MXQueryTime d)
           
 boolean equals(java.lang.Object o)
           
 int getHours()
          getters
 int getMiliseconds()
           
 int getMinutes()
           
 int getSeconds()
           
 MXQueryDouble getSecondsWithMili()
           
 java.lang.String getTimeZone()
           
 MXQueryDayTimeDuration getTimezoneAsDuration()
           
 int getTimezoneInMinutes()
           
 int hashCode()
           
 MXQueryDayTimeDuration subtract(MXQueryTime t)
           
 MXQueryTime subtractDuration(MXQueryDayTimeDuration d)
           
 java.lang.String toString()
           
 boolean unequals(MXQueryTime d)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MXQueryTime

public MXQueryTime(MXQueryDateTime dt)

MXQueryTime

public MXQueryTime(java.lang.String input)
            throws MXQueryException
Throws:
MXQueryException
Method Detail

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

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich