diff --git a/src/main/java/EPLHelpers.java b/src/main/java/EPLHelpers.java index 628879d..511e548 100644 --- a/src/main/java/EPLHelpers.java +++ b/src/main/java/EPLHelpers.java @@ -35,6 +35,13 @@ public class EPLHelpers { return timeFormatter.parseDateTime(time); } + /** + * Create a DateTime object from time in millis. + */ + public static DateTime makeTime(Long time) { + return new DateTime(time); + } + /** * Return true if the time portion of 'now' is between the time * portion of 'start' and 'end'.