public class TimestampFactory extends Object
ZonedDateTime.| Modifier and Type | Method and Description |
|---|---|
static ZonedDateTime |
createTimestamp()
Create a timestamp for *now*
|
static ZonedDateTime |
createTimestamp(String spec)
Create a timestamp by parsing the given string representation which must be in an extended ISO 8601 Format
with Nanoseconds since this is the format used by Docker for logging (e.g.
|
public static ZonedDateTime createTimestamp()
public static ZonedDateTime createTimestamp(String spec)
spec - date specification to parseCopyright © 2020. All rights reserved.