Class TimestampUtil


  • public class TimestampUtil
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.time.format.DateTimeFormatter parser1  
    • Constructor Summary

      Constructors 
      Constructor Description
      TimestampUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String format​(java.util.Date ts)  
      static void main​(java.lang.String[] args)  
      static java.sql.Timestamp parse​(java.lang.String ts)  
      static java.time.temporal.TemporalAccessor parseTA​(java.lang.String ts)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • parser1

        public static final java.time.format.DateTimeFormatter parser1
    • Constructor Detail

      • TimestampUtil

        public TimestampUtil()
    • Method Detail

      • parseTA

        public static java.time.temporal.TemporalAccessor parseTA​(java.lang.String ts)
      • parse

        public static java.sql.Timestamp parse​(java.lang.String ts)
      • format

        public static java.lang.String format​(java.util.Date ts)
      • main

        public static void main​(java.lang.String[] args)