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).
Nico Rehwaldt
  • Constructor Details

    • DateTimeUtil

      public DateTimeUtil()
  • Method Details

    • 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)