diff --git a/time.js b/time.js index a27df6d..afb4d2e 100644 --- a/time.js +++ b/time.js @@ -21,7 +21,8 @@ function parse(timestr) { //Function for parsing and checking if the currrent time is within the parsed string. function within_timespan(timespan) { - + if (get() > parse(timespan)[0] && get() < parse(timespan)[1]) return true; + else return false; } function during_school() {