From f170c4e4343830872d80c374e6db4c9b671c9834 Mon Sep 17 00:00:00 2001 From: Seth Ladygo Date: Fri, 13 Jul 2018 17:19:48 -0700 Subject: [PATCH] EPLHelpers: add str() --- src/main/java/EPLHelpers.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/EPLHelpers.java b/src/main/java/EPLHelpers.java index fd3b6ae..ac40a71 100644 --- a/src/main/java/EPLHelpers.java +++ b/src/main/java/EPLHelpers.java @@ -8,10 +8,14 @@ public class EPLHelpers { final static Logger log = LoggerFactory.getLogger(EPLHelpers.class); + /** Return the hour of the day for the given date. */ public static int getHour(DateTime date) { return date.getHourOfDay(); } + /** A simple toString() wrapper for use in epl. */ + public static String str(Object o) { return o.toString(); } + /** * Compare two times and return true if the first is earlier than * the second.