public class TimestampUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
generateTimestamp(long timestamp,
TimeUnit timeUnit)
Will generate a reverse timestamp with the precision of the provided timeunit.
|
static long |
revertTimestamp(String timestamp)
Reverts the string timestamp into an epoch timestamp with the precision of the provided timeunit.
|
public static String generateTimestamp(long timestamp, TimeUnit timeUnit)
timestamp - timeUnit - public static long revertTimestamp(String timestamp)
timestamp - Copyright © 2014 Calrissian. All Rights Reserved.