public class MetricsUtils extends Object
Constructor and Description |
---|
MetricsUtils() |
Modifier and Type | Method and Description |
---|---|
static com.google.protobuf.Timestamp |
now() |
static com.google.protobuf.Timestamp |
now(Clock clock) |
static OffsetDateTime |
nowInUTC() |
static ZonedDateTime |
nowInUTC(Clock clock) |
static Instant |
toInstant(com.google.protobuf.Timestamp timestamp) |
static com.google.protobuf.Timestamp |
toTimestamp(Instant instant) |
public static com.google.protobuf.Timestamp now(Clock clock)
public static com.google.protobuf.Timestamp now()
public static com.google.protobuf.Timestamp toTimestamp(Instant instant)
public static Instant toInstant(com.google.protobuf.Timestamp timestamp)
public static ZonedDateTime nowInUTC(Clock clock)
public static OffsetDateTime nowInUTC()