public class Timestamp extends Object implements Comparable<Timestamp>
LocalDateTime
and nano seconds and which can be compared.Constructor and Description |
---|
Timestamp()
Create a timestamp for *now*
|
Timestamp(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.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Timestamp ts) |
boolean |
equals(Object o) |
LocalDateTime |
getDate() |
int |
hashCode() |
String |
toString() |
public Timestamp()
public Timestamp(String spec)
spec
- date specification to parsepublic LocalDateTime getDate()
public int compareTo(Timestamp ts)
compareTo
in interface Comparable<Timestamp>
Copyright © 2019. All rights reserved.