Infrastructure that works for all the locks' group!
[smartthings-infrastructure.git] / Methods / timeToday.groovy
1 /////////////////////////////////////////////////////////////////////
2 def timeToday(String time, Object timeZone) {
3         def timeOfDay = new Date()
4         def _inputTime = time.split(':')
5         def inputTime = Integer.parseInt(_inputTime[0])*3600+Integer.parseInt(_inputTime[1])*60+1564191100415
6         timeOfDay.time = inputTime
7         return timeOfDay
8 }