projects
/
smartthings-infrastructure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improvements and new methods
[smartthings-infrastructure.git]
/
Methods
/
schedule.groovy
diff --git
a/Methods/schedule.groovy
b/Methods/schedule.groovy
index 1d8c810b7e70c195e8c1372a5ce4c338c00781b0..f4fcf24cc318f2eeebd4d666a5612bb836666948 100644
(file)
--- a/
Methods/schedule.groovy
+++ b/
Methods/schedule.groovy
@@
-22,6
+22,11
@@
def schedule(String time, String nameOfFunction) {
}*/
"$nameOfFunction"()
}
}*/
"$nameOfFunction"()
}
+/////////////////////////////////////////////////////////////////////
+////schedule(Date, nameOfFunction as String)
+def schedule(Date date, String nameOfFunction) {
+ "$nameOfFunction"()
+}
////schedule(time, nameOfFunction as Closure)
def schedule(String time, Closure nameOfFunction) {
/*def _inputTime = time.split(':')
////schedule(time, nameOfFunction as Closure)
def schedule(String time, Closure nameOfFunction) {
/*def _inputTime = time.split(':')