summaryrefslogtreecommitdiff
path: root/lib/ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-07-22 15:39:38 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2011-07-22 15:39:38 -0400
commitc723667d402b730edc4059cb132587977893b42a (patch)
tree6656ba1a78bd4eb71c381dc95d2e7b1a8ce6b130 /lib/ur
parent02d95a3ae4ed3519b082fe49616e493572e68e83 (diff)
Backpedal on tutorial-motivated urweb-mode changes; add Basis.diffInSeconds and Basis.toSeconds
Diffstat (limited to 'lib/ur')
-rw-r--r--lib/ur/basis.urs3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ur/basis.urs b/lib/ur/basis.urs
index b60610cd..cabac068 100644
--- a/lib/ur/basis.urs
+++ b/lib/ur/basis.urs
@@ -145,6 +145,9 @@ val current : t ::: Type -> signal t -> transaction t
val now : transaction time
val minTime : time
val addSeconds : time -> int -> time
+val toSeconds : time -> int
+val diffInSeconds : time -> time -> int
+(* Earlier time first *)
val timef : string -> time -> string (* Uses strftime() format string *)
val readUtc : string -> option time