Class TimestampUtil


  • public class TimestampUtil
    extends java.lang.Object
    Utility for parsing our UTC timestamp format.
    • Constructor Summary

      Constructors 
      Constructor Description
      TimestampUtil()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static TimestampUtil create()
      Create a new utility instance, so each thread can get its own
      java.lang.String format​(java.util.Date tstamp)
      Format the tstamp into our ISO8601 standard
      java.util.Date getTimestamp​(java.lang.String str)
      Parse the date string
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TimestampUtil

        public TimestampUtil()
    • Method Detail

      • create

        public static TimestampUtil create()
        Create a new utility instance, so each thread can get its own
        Returns:
      • getTimestamp

        public java.util.Date getTimestamp​(java.lang.String str)
        Parse the date string
        Parameters:
        str -
        Returns:
        the parsed date string
        Throws:
        ReplicatorException - for an error
      • format

        public java.lang.String format​(java.util.Date tstamp)
        Format the tstamp into our ISO8601 standard
        Parameters:
        tstamp -
        Returns: