Class TimestampUtil


  • public class TimestampUtil
    extends Object
    Utility for parsing our UTC timestamp format.
    • 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 Date getTimestamp​(String str)
        Parse the date string
        Parameters:
        str -
        Returns:
        the parsed date string
        Throws:
        ReplicatorException - for an error
      • format

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