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