Class DateMathParser


  • public class DateMathParser
    extends java.lang.Object
    A parser for date/time formatted text with optional date math. The format of the datetime is configurable, and unix timestamps can also be used. Datemath is appended to a datetime with the following syntax: ||[+-/](\d+)?[yMwdhHms].
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long parse​(java.lang.String text, java.util.function.LongSupplier now)  
      long parse​(java.lang.String text, java.util.function.LongSupplier now, boolean roundUp, org.joda.time.DateTimeZone timeZone)  
      • Methods inherited from class java.lang.Object

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

      • parse

        public long parse​(java.lang.String text,
                          java.util.function.LongSupplier now)
      • parse

        public long parse​(java.lang.String text,
                          java.util.function.LongSupplier now,
                          boolean roundUp,
                          org.joda.time.DateTimeZone timeZone)