| Package | Description |
|---|---|
| com.blibli.oss.common.helper | |
| com.blibli.oss.common.helper.constants |
| Modifier and Type | Method and Description |
|---|---|
static Date |
DateHelper.add(Date date,
int diff,
TimeUnit unit)
Adds the specified amount of time to the given
date. |
static Date |
DateHelper.minus(Date date,
int diff,
TimeUnit unit)
Subtracts the specified amount of time from the given
date. |
static long |
DateHelper.toMilliseconds(long input,
TimeUnit unit)
Converts
input to milliseconds with respect to the given unit. |
| Modifier and Type | Method and Description |
|---|---|
static TimeUnit |
TimeUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeUnit[] |
TimeUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2018. All rights reserved.