aboutsummaryrefslogtreecommitdiff
path: root/lib/core/time.nom
diff options
context:
space:
mode:
Diffstat (limited to 'lib/core/time.nom')
-rw-r--r--lib/core/time.nom5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/core/time.nom b/lib/core/time.nom
index 88241d6..aa59d7a 100644
--- a/lib/core/time.nom
+++ b/lib/core/time.nom
@@ -1,5 +1,4 @@
#!/usr/bin/env nomsu -V7.0.0
-
###
This file defines time-related actions.
@@ -37,7 +36,7 @@ external:
if ($other is "a Time"):
return ($os.difftime $self ($os.time $other))
return (a Time ($os.date "*t" ($self - $other, rounded)))
-
+
($self, <$other) means (($self, since epoch) < ($other, since epoch))
($self, <=$other) means (($self, since epoch) <= ($other, since epoch))
($self, as text) means ($os.date "%I:%M%p %a %b %e %Y" ($os.time $self))
@@ -51,4 +50,4 @@ external:
### Lua does not come with a sleep() function, only an os.clock() function,
so this busy-loop is necessary for cross-platform compatibility.
$deadline = (($os.clock()) + $t)
- repeat while (($os.clock()) < $deadline): do nothing
+ repeat while (($os.clock()) < $deadline): do nothing \ No newline at end of file