Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #56 from sjz/master

added test for 'seconds' unit in `isInTheLast`
  • Loading branch information...
commit fd91a46627f84e1953c3f9075884508f488098ef 2 parents ef68bcf + 7afbd8f
@mshorts authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 includes/verbs.ahk
View
10 includes/verbs.ahk
@@ -89,7 +89,15 @@ isInTheLast(Subject, Object)
}
EnvSub, Time, %Subject%, s
- if (Units = "minutes")
+
+ if (Units = "seconds")
+ {
+ if (Time < Object)
+ result := true
+ else
+ result := false
+ }
+ else if (Units = "minutes")
{
if ((Time/60) < Object)
result := true
Please sign in to comment.
Something went wrong with that request. Please try again.