Class WQDates
java.lang.Object
com.peterphi.std.guice.restclient.jaxb.webquery.WQDates
Helper class to allow date maths to be encoded and resolved
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringencode(WQDates.WebQueryDateAnchor anchor) static Stringencode(WQDates.WebQueryDateAnchor anchor, boolean add, String period) static Stringencode(WQDates.WebQueryDateAnchor anchor, boolean add, org.joda.time.Period period) static StringnowMinus(org.joda.time.Period period) static StringnowPlus(org.joda.time.Period period) static org.joda.time.DateTimeResolve a datetime expression (or a literal ISO datetime, or a value ofepochms_(milliseconds-since-1970))static StringtodayMinus(org.joda.time.Period period) static StringtodayPlus(org.joda.time.Period period)
-
Method Details
-
nowPlus
-
nowMinus
-
todayPlus
-
todayMinus
-
encode
-
encode
-
encode
public static String encode(WQDates.WebQueryDateAnchor anchor, boolean add, org.joda.time.Period period) -
resolve
Resolve a datetime expression (or a literal ISO datetime, or a value ofepochms_(milliseconds-since-1970))- Parameters:
expr-- Returns:
-