aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/time/date.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/time/date.lux6
1 files changed, 6 insertions, 0 deletions
diff --git a/stdlib/source/lux/time/date.lux b/stdlib/source/lux/time/date.lux
index 48e4e7d41..872f91f13 100644
--- a/stdlib/source/lux/time/date.lux
+++ b/stdlib/source/lux/time/date.lux
@@ -80,6 +80,12 @@
#day day}))
(exception.throw ..invalid_day [year month day])))
+ (def: #export epoch
+ Date
+ (try.assume (..date //year.epoch
+ #//month.January
+ ..minimum_day)))
+
(template [<name> <type> <field>]
[(def: #export <name>
(-> Date <type>)