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
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
encode
(WQDates.WebQueryDateAnchor anchor) static String
encode
(WQDates.WebQueryDateAnchor anchor, boolean add, String period) static String
encode
(WQDates.WebQueryDateAnchor anchor, boolean add, org.joda.time.Period period) static String
nowMinus
(org.joda.time.Period period) static String
nowPlus
(org.joda.time.Period period) static org.joda.time.DateTime
Resolve a datetime expression (or a literal ISO datetime, or a value ofepochms_(milliseconds-since-1970)
)static String
todayMinus
(org.joda.time.Period period) static String
todayPlus
(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:
-