From c54f24c0b2a5dffacbf77d10ae1b19b907e000bc Mon Sep 17 00:00:00 2001 From: Seth Ladygo Date: Mon, 11 Feb 2019 16:38:07 -0800 Subject: [PATCH] add EPLHelpers.makeTime() --- src/main/java/EPLHelpers.java | 7 +++++++ 1 file changed, 7 insertions(+) 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'.