aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/artifact/time_stamp/time.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/program/aedifex/artifact/time_stamp/time.lux')
-rw-r--r--stdlib/source/program/aedifex/artifact/time_stamp/time.lux35
1 files changed, 0 insertions, 35 deletions
diff --git a/stdlib/source/program/aedifex/artifact/time_stamp/time.lux b/stdlib/source/program/aedifex/artifact/time_stamp/time.lux
deleted file mode 100644
index d14f0a435..000000000
--- a/stdlib/source/program/aedifex/artifact/time_stamp/time.lux
+++ /dev/null
@@ -1,35 +0,0 @@
-(.module:
- [lux #*
- ["." time (#+ Time)]
- [abstract
- [monad (#+ do)]]
- [control
- ["<>" parser
- ["<.>" text (#+ Parser)]]]
- [data
- [text
- ["%" format]]]
- [math
- [number
- ["n" nat]]]]
- ["." // #_
- ["#" date]])
-
-(def: #export (format value)
- (%.Format Time)
- (let [(^slots [#time.hour #time.minute #time.second]) (time.clock value)]
- (%.format (//.pad hour)
- (//.pad minute)
- (//.pad second))))
-
-(def: #export parser
- (<text>.Parser Time)
- (do <>.monad
- [hour (<>.codec n.decimal (<text>.exactly 2 <text>.decimal))
- minute (<>.codec n.decimal (<text>.exactly 2 <text>.decimal))
- second (<>.codec n.decimal (<text>.exactly 2 <text>.decimal))]
- (<>.lift (time.time
- {#time.hour hour
- #time.minute minute
- #time.second second
- #time.milli_second 0}))))