com.ibm.mm.sdk.common

Class DKTimestamp

  • java.lang.Object
    • java.util.Date
      • java.sql.Timestamp
        • com.ibm.mm.sdk.common.DKTimestamp
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<java.util.Date>


    public class DKTimestamp
    extends java.sql.Timestamp
    implements java.io.Serializable
    DKTimestamp defines a generic timestamp class to represent timestamp data-type retrieved from back-end datastores. The default string format is yyyy-mo-dd-hh.mi.ss.nnnnnn, where nnnnnn is a six-digit fraction representing microseconds.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      DKTimestamp(int year, int month, int day, int hour, int minute, int second, int nnnnnn) 
      DKTimestamp(long timestamp) 
      DKTimestamp(java.sql.Timestamp timestamp) 
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getHours() 
      java.lang.String toString() 
      static java.sql.Timestamp valueOf(java.lang.String s) 
      • Methods inherited from class java.sql.Timestamp

        after, before, compareTo, compareTo, equals, equals, from, getNanos, getTime, hashCode, setNanos, setTime, toInstant, toLocalDateTime, valueOf
      • Methods inherited from class java.util.Date

        after, before, clone, getDate, getDay, getMinutes, getMonth, getSeconds, getTimezoneOffset, getYear, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setYear, toGMTString, toLocaleString, UTC
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DKTimestamp

        public DKTimestamp(int year,
                           int month,
                           int day,
                           int hour,
                           int minute,
                           int second,
                           int nnnnnn)
      • DKTimestamp

        public DKTimestamp(long timestamp)
      • DKTimestamp

        public DKTimestamp(java.sql.Timestamp timestamp)
    • Method Detail

      • valueOf

        public static java.sql.Timestamp valueOf(java.lang.String s)
      • getHours

        public int getHours()
        Overrides:
        getHours in class java.util.Date
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.sql.Timestamp
Copyright © 2024 IBM Corporation

Copyright © 2024 IBM Corporation. All rights reserved.