add EPLHelpers.makeTime()

This commit is contained in:
2019-02-11 16:38:07 -08:00
parent 6a143eb425
commit c54f24c0b2

View File

@ -35,6 +35,13 @@ public class EPLHelpers {
return timeFormatter.parseDateTime(time); 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 * Return true if the time portion of 'now' is between the time
* portion of 'start' and 'end'. * portion of 'start' and 'end'.