Class Timestamp


  • public class Timestamp
    extends Object
    UTC timestamp.

    This class is not thread-safe.

    • Constructor Detail

      • Timestamp

        public Timestamp​(TimeZone timeZone)
      • Timestamp

        public Timestamp()
    • Method Detail

      • calendarToUtcTimestampBytes

        public static void calendarToUtcTimestampBytes​(Calendar calendar,
                                                       byte[] bytes,
                                                       int offset,
                                                       boolean withMs)
      • dateTimeToUtcTimestampBytes

        public static void dateTimeToUtcTimestampBytes​(LocalDateTime dateTime,
                                                       byte[] bytes,
                                                       int offset,
                                                       boolean withMs)
      • dateTimeToUtcTimestampBytes

        public static void dateTimeToUtcTimestampBytes​(byte[] bytes,
                                                       int offset,
                                                       int year,
                                                       int month,
                                                       int day,
                                                       int hour,
                                                       int minute,
                                                       int second,
                                                       int millis,
                                                       boolean withMs)
      • getUtcTimestamp

        public void getUtcTimestamp​(ValuePtr valuePtr,
                                    boolean withMs)
      • getUtcTimestampBytes

        public byte[] getUtcTimestampBytes​(boolean withMs)
      • convertToUtcTimestampBytes

        public byte[] convertToUtcTimestampBytes​(long currentTimeMillis,
                                                 boolean withMs)
      • getUtcTimestamp

        public String getUtcTimestamp​(boolean withMs)
      • convertToUtcTimestamp

        public String convertToUtcTimestamp​(long currentTimeMillis,
                                            boolean withMs)