Package io.deephaven.base.text
Class TimestampBuffer
java.lang.Object
io.deephaven.base.text.TimestampBuffer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTimestamp
(long nowMillis) Return a thread-local byte buffer containing the give time, formatted in ISO 8601.void
getTimestamp
(long nowMillis, ByteBuffer dest) Format the current time into a ByteBuffer in according to ISO 8601.
-
Constructor Details
-
TimestampBuffer
-
TimestampBuffer
Deprecated.
-
-
Method Details
-
getTimestamp
Return a thread-local byte buffer containing the give time, formatted in ISO 8601. The buffer's position is set to zero in preparation for writing its contents to another buffer or a channel. Since the buffer is thread-local, the caller can safely assume that it won't change until the same thread accesses this TimestampBuffer again. -
getTimestamp
Format the current time into a ByteBuffer in according to ISO 8601.- Throws:
BufferOverflowException
- if there is not enough room in the destination buffer.
-