Calendar.Roll 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
Roll(CalendarField, Boolean) |
Adds or subtracts (up/down) a single unit of time on the given time field without changing larger fields. |
Roll(CalendarField, Int32) |
Adds the specified (signed) amount to the specified calendar field without changing larger fields. |
Roll(CalendarField, Boolean)
Adds or subtracts (up/down) a single unit of time on the given time field without changing larger fields.
[Android.Runtime.Register("roll", "(IZ)V", "GetRoll_IZHandler")]
public abstract void Roll (Java.Util.CalendarField field, bool up);
[<Android.Runtime.Register("roll", "(IZ)V", "GetRoll_IZHandler")>]
abstract member Roll : Java.Util.CalendarField * bool -> unit
Parameters
- field
- CalendarField
the time field.
- up
- Boolean
indicates if the value of the specified time field is to be rolled up or rolled down. Use true if rolling up, false otherwise.
- Attributes
Remarks
Java documentation for java.util.Calendar.roll(int, boolean)
.
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
Roll(CalendarField, Int32)
Adds the specified (signed) amount to the specified calendar field without changing larger fields.
[Android.Runtime.Register("roll", "(II)V", "GetRoll_IIHandler")]
public virtual void Roll (Java.Util.CalendarField field, int amount);
[<Android.Runtime.Register("roll", "(II)V", "GetRoll_IIHandler")>]
abstract member Roll : Java.Util.CalendarField * int -> unit
override this.Roll : Java.Util.CalendarField * int -> unit
Parameters
- field
- CalendarField
the calendar field.
- amount
- Int32
the signed amount to add to the calendar field
.
- Attributes
Remarks
Java documentation for java.util.Calendar.roll(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.