Modifier | Constructor and Description |
---|---|
protected |
Time()
Initializes a new instance of Time.
|
|
Time(Date dateTime)
Initializes a new instance of Time.
|
protected |
Time(int minutes)
Initializes a new instance of Time.
|
protected |
Time(int hours,
int minutes,
int seconds)
Initializes a new instance of Time.
|
Modifier and Type | Method and Description |
---|---|
protected int |
convertToMinutes()
Converts the time into a number of minutes since 12:00AM.
|
protected int |
getHours()
Gets the hours.
|
protected int |
getMinutes()
Gets the minutes.
|
protected int |
getSeconds()
Gets the seconds.
|
protected void |
setHours(int value)
sets the hours.
|
protected void |
setMinutes(int value)
Sets the minutes.
|
protected void |
setSeconds(int value)
Sets the seconds.
|
String |
toXSTime()
Convert Time to XML Schema time.
|
protected Time()
protected Time(int minutes) throws ArgumentException
minutes
- The number of minutes since 12:00AM.ArgumentException
- the argument exceptionpublic Time(Date dateTime) throws ArgumentException
dateTime
- the date timeArgumentException
- the argument exceptionprotected Time(int hours, int minutes, int seconds)
hours
- the hoursminutes
- the minutesseconds
- the secondspublic String toXSTime()
protected int convertToMinutes()
protected int getHours()
protected void setHours(int value) throws ArgumentException
value
- the new hoursArgumentException
- the argument exceptionprotected int getMinutes()
protected void setMinutes(int value) throws ArgumentException
value
- the new minutesArgumentException
- the argument exceptionprotected int getSeconds()
protected void setSeconds(int value) throws ArgumentException
value
- the new secondsArgumentException
- the argument exceptionCopyright © 2012–2015 Microsoft. All rights reserved.