Class DateTimeUtil


  • public class DateTimeUtil
    extends 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).
    Author:
    Nico Rehwaldt
    • Constructor Detail

      • DateTimeUtil

        public DateTimeUtil()
    • Method Detail

      • now

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

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

        public static Date parseDate​(String date)