public class Rounding extends Object
| Constructor and Description |
|---|
Rounding() |
| Modifier and Type | Method and Description |
|---|---|
static Date |
roundTo12AMApplyHourOffset(Date time,
int hourOffset)
Adjust the time value to 12 AM and then apply the specified
offset (which is in hours).
|
public static Date roundTo12AMApplyHourOffset(Date time, int hourOffset)
time - the time value to adjusthourOffset - the offset (in hours from 0 to 23) to apply
to the specified time.
day.Copyright © 2003, 2023, Oracle and/or its affiliates.