aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/time/month.lux
blob: 1f7081756d2cc373eb8ad842ce54d86f2b30afeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
(.using
 [library
  [lux (.except and)
   ["$" documentation (.only documentation:)]
   [control
    ["<>" parser
     ["<[0]>" code]]]
   [data
    ["[0]" text (.only \n)
     ["%" format (.only format)]]]
   [macro
    ["[0]" template]]]]
 [\\library
  ["[0]" /]])

(documentation: /.Month
  "A month of the year.")

(documentation: /.days
  "The amount of days of a month."
  [(days month)])

(documentation: /.leap_year_days
  "The amount of days of a month (in a leap year)."
  [(leap_year_days month)])

(documentation: /.year
  "All the months, ordered by when they come in a year.")

(.def: .public documentation
  (.List $.Module)
  ($.module /._
            ""
            [..Month
             ..days
             ..leap_year_days
             ..year
             ($.default /.equivalence)
             ($.default /.number)
             ($.default /.invalid_month)
             ($.default /.by_number)
             ($.default /.hash)
             ($.default /.order)
             ($.default /.enum)
             ($.default /.not_a_month_of_the_year)
             ($.default /.codec)]
            []))