XMLGregorianCalendar.SetTime Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetTime(Int32, Int32, Int32) |
Set time as one unit. |
SetTime(Int32, Int32, Int32, BigDecimal) |
Set time as one unit, including the optional infinite precision fractional seconds. |
SetTime(Int32, Int32, Int32, Int32) |
Set time as one unit, including optional milliseconds. |
SetTime(Int32, Int32, Int32)
Set time as one unit.
[Android.Runtime.Register("setTime", "(III)V", "GetSetTime_IIIHandler")]
public virtual void SetTime (int hour, int minute, int second);
[<Android.Runtime.Register("setTime", "(III)V", "GetSetTime_IIIHandler")>]
abstract member SetTime : int * int * int -> unit
override this.SetTime : int * int * int -> unit
Parameters
- hour
- Int32
value constraints are summarized in hour field of date/time field mapping table.
- minute
- Int32
value constraints are summarized in minute field of date/time field mapping table.
- second
- Int32
value constraints are summarized in second field of date/time field mapping table.
- Attributes
Exceptions
if any parameter is outside value constraints for the field as specified in .
Remarks
Set time as one unit.
Java documentation for javax.xml.datatype.XMLGregorianCalendar.setTime(int, int, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
See also
- <xref:Javax.Xml.Datatype.XMLGregorianCalendar.SetTime(System.Int32%2c+System.Int32%2c+System.Int32%2c+System.Int32)>
Applies to
SetTime(Int32, Int32, Int32, BigDecimal)
Set time as one unit, including the optional infinite precision fractional seconds.
[Android.Runtime.Register("setTime", "(IIILjava/math/BigDecimal;)V", "GetSetTime_IIILjava_math_BigDecimal_Handler")]
public virtual void SetTime (int hour, int minute, int second, Java.Math.BigDecimal? fractional);
[<Android.Runtime.Register("setTime", "(IIILjava/math/BigDecimal;)V", "GetSetTime_IIILjava_math_BigDecimal_Handler")>]
abstract member SetTime : int * int * int * Java.Math.BigDecimal -> unit
override this.SetTime : int * int * int * Java.Math.BigDecimal -> unit
Parameters
- hour
- Int32
value constraints are summarized in hour field of date/time field mapping table.
- minute
- Int32
value constraints are summarized in minute field of date/time field mapping table.
- second
- Int32
value constraints are summarized in second field of date/time field mapping table.
- fractional
- BigDecimal
value of null
indicates this optional
field is not set.
- Attributes
Exceptions
if any parameter is outside value constraints for the field as specified in .
Remarks
Set time as one unit, including the optional infinite precision fractional seconds.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
SetTime(Int32, Int32, Int32, Int32)
Set time as one unit, including optional milliseconds.
[Android.Runtime.Register("setTime", "(IIII)V", "GetSetTime_IIIIHandler")]
public virtual void SetTime (int hour, int minute, int second, int millisecond);
[<Android.Runtime.Register("setTime", "(IIII)V", "GetSetTime_IIIIHandler")>]
abstract member SetTime : int * int * int * int -> unit
override this.SetTime : int * int * int * int -> unit
Parameters
- hour
- Int32
value constraints are summarized in hour field of date/time field mapping table.
- minute
- Int32
value constraints are summarized in minute field of date/time field mapping table.
- second
- Int32
value constraints are summarized in second field of date/time field mapping table.
- millisecond
- Int32
value of DatatypeConstants#FIELD_UNDEFINED
indicates this
optional field is not set.
- Attributes
Exceptions
if any parameter is outside value constraints for the field as specified in .
Remarks
Set time as one unit, including optional milliseconds.
Java documentation for javax.xml.datatype.XMLGregorianCalendar.setTime(int, int, int, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.