Class DateTimeUtil

  • public class DateTimeUtil
    extends java.lang.Object
    Utility for DateTime that uses the JVM timezone for date / time related operations. This is important as the JVM timezone and the system timezone may differ which leads to different behavior in SimpleDateFormat (using JVM default timezone) and JODA time (using system default timezone).
    Nico Rehwaldt
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.joda.time.DateTime now()  
      static java.util.Date parseDate​(java.lang.String date)  
      static org.joda.time.DateTime parseDateTime​(java.lang.String date)  
      • Methods inherited from class java.lang.Object

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

      • DateTimeUtil

        public DateTimeUtil()
    • Method Detail

      • now

        public static org.joda.time.DateTime now()
      • parseDateTime

        public static org.joda.time.DateTime parseDateTime​(java.lang.String date)
      • parseDate

        public static java.util.Date parseDate​(java.lang.String date)