Fixing some bugs
[smartthings-infrastructure.git] / Methods / timeToday.groovy
index 0d905b5..07894de 100644 (file)
@@ -14,3 +14,12 @@ def timeToday(String time) {
        timeOfDay.time = inputTime
        return timeOfDay
 }
+
+
+def timeTodayAfter(Date date, String time, Object timeZone) {
+       def timeOfDay = new Date()
+       def _inputTime = time.split(':')
+       def inputTime = Integer.parseInt(_inputTime[0])*3600+Integer.parseInt(_inputTime[1])*60+1564191100415
+       timeOfDay.time = inputTime
+       return timeOfDay
+}