public final class TaskUtils
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
TaskUtils()
Protected constructor for utility class.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Calendar |
getMidnightUTC()
Get exactly midnight (00:00:00.000) UTC for the current day.
|
static void |
subtractDaysFromDate(java.util.Calendar cal,
int days)
Subtract the given number of days from the given date.
|
public static java.util.Calendar getMidnightUTC()
public static void subtractDaysFromDate(@NotNull java.util.Calendar cal, int days)
cal
- The calendar object to modifydays
- the number of days. If negative they won't be added they will just be subtracted.