java.lang.Object
com.peterphi.std.guice.restclient.jaxb.webquery.WQDates

public class WQDates extends Object
Helper class to allow date maths to be encoded and resolved
  • Method Details

    • nowPlus

      public static String nowPlus(org.joda.time.Period period)
    • nowMinus

      public static String nowMinus(org.joda.time.Period period)
    • todayPlus

      public static String todayPlus(org.joda.time.Period period)
    • todayMinus

      public static String todayMinus(org.joda.time.Period period)
    • encode

      public static String encode(WQDates.WebQueryDateAnchor anchor)
    • encode

      public static String encode(WQDates.WebQueryDateAnchor anchor, boolean add, String period)
    • encode

      public static String encode(WQDates.WebQueryDateAnchor anchor, boolean add, org.joda.time.Period period)
    • resolve

      public static org.joda.time.DateTime resolve(String expr)
      Resolve a datetime expression (or a literal ISO datetime, or a value of epochms_(milliseconds-since-1970))
      Parameters:
      expr -
      Returns: