diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-03-27 15:22:46 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-03-27 15:22:46 -0700 |
| commit | a1849da175765350e013bdeecfa4e0ad3c066937 (patch) | |
| tree | 616a115790271757148044e2b3228fb715c00726 /lib/core/time.nom | |
| parent | bb07e6724118c431c3beed4060776678128905a1 (diff) | |
Autoformat (mostly just to do with the new
blank-line-after-end-of-multi-indent-block rule
Diffstat (limited to 'lib/core/time.nom')
| -rw-r--r-- | lib/core/time.nom | 5 |
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 |
