Class Time
- java.lang.Object
-
- microsoft.exchange.webservices.data.misc.Time
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTime()Initializes a new instance of Time.protectedTime(int minutes)Initializes a new instance of Time.protectedTime(int hours, int minutes, int seconds)Initializes a new instance of Time.Time(Date dateTime)Initializes a new instance of Time.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intconvertToMinutes()Converts the time into a number of minutes since 12:00AM.protected intgetHours()Gets the hours.protected intgetMinutes()Gets the minutes.protected intgetSeconds()Gets the seconds.protected voidsetHours(int value)sets the hours.protected voidsetMinutes(int value)Sets the minutes.protected voidsetSeconds(int value)Sets the seconds.StringtoXSTime()Convert Time to XML Schema time.
-
-
-
Constructor Detail
-
Time
protected Time()
Initializes a new instance of Time.
-
Time
protected Time(int minutes) throws ArgumentException
Initializes a new instance of Time.- Parameters:
minutes- The number of minutes since 12:00AM.- Throws:
ArgumentException- the argument exception
-
Time
public Time(Date dateTime) throws ArgumentException
Initializes a new instance of Time.- Parameters:
dateTime- the date time- Throws:
ArgumentException- the argument exception
-
Time
protected Time(int hours, int minutes, int seconds)
Initializes a new instance of Time.- Parameters:
hours- the hoursminutes- the minutesseconds- the seconds
-
-
Method Detail
-
toXSTime
public String toXSTime()
Convert Time to XML Schema time.- Returns:
- String in XML Schema time format
-
convertToMinutes
protected int convertToMinutes()
Converts the time into a number of minutes since 12:00AM.- Returns:
- The number of minutes since 12:00AM the time represents.
-
getHours
protected int getHours()
Gets the hours.- Returns:
- the hours
-
setHours
protected void setHours(int value) throws ArgumentException
sets the hours.- Parameters:
value- the new hours- Throws:
ArgumentException- the argument exception
-
getMinutes
protected int getMinutes()
Gets the minutes.- Returns:
- the minutes
-
setMinutes
protected void setMinutes(int value) throws ArgumentException
Sets the minutes.- Parameters:
value- the new minutes- Throws:
ArgumentException- the argument exception
-
getSeconds
protected int getSeconds()
Gets the seconds.- Returns:
- the seconds
-
setSeconds
protected void setSeconds(int value) throws ArgumentException
Sets the seconds.- Parameters:
value- the new seconds- Throws:
ArgumentException- the argument exception
-
-