Android Utililty Methods Date Set

List of utility methods to do Date Set

Description

The list of methods to do Date Set are organized into topic(s).

Method

Calendarceiling(Calendar date, int field)

Ceil this date, leaving the field specified as the most significant field.

For example, if you had the datetime of 28 Mar 2002 13:45:01.231, if you passed with HOUR, it would return 28 Mar 2002 13:00:00.000.

Dateceiling(Date date, int field)

Ceil this date, leaving the field specified as the most significant field.

For example, if you had the datetime of 28 Mar 2002 13:45:01.231, if you passed with HOUR, it would return 28 Mar 2002 14:00:00.000.

Dateceiling(Object date, int field)

Ceil this date, leaving the field specified as the most significant field.

For example, if you had the datetime of 28 Mar 2002 13:45:01.231, if you passed with HOUR, it would return 28 Mar 2002 13:00:00.000.

DateoffsetDay(Date date, int offset)
offset Day
DateoffsetHour(Date date, int offset)
offset Hour
Dateset(Date date, int calendarField, int amount)
Sets the specified field to a date returning a new object.
DatesetDays(Date date, int amount)
Sets the day of month field to a date returning a new object.
DatesetHour(Date date, int hours)
set Hour
DatesetHours(Date date, int amount)
Sets the hours field to a date returning a new object.
DatesetMilliseconds(Date date, int amount)
Sets the miliseconds field to a date returning a new object.