on master help sign in
thru 3c
commitc6bbffac62b2f4ec0b3f679efebca98946a41b0d authorHenry Ault <henry@tlon.io> dateThu 17 Mar 2016, 16:30 (11 years ago) parent06b7fce
7 files changed+39−32
docs/system/hoon/library/src/3c/core/yo.md+11−11 docs/system/hoon/library/src/3c/gate/yall.md+8−7 docs/system/hoon/library/src/3c/gate/yawn.md+3−2 docs/system/hoon/library/src/3c/gate/year.md+5−4 docs/system/hoon/library/src/3c/gate/yell.md+4−2 docs/system/hoon/library/src/3c/gate/yore.md+3−2 docs/system/hoon/library/src/3c/gate/yule.md+5−4
docs/system/hoon/library/src/3c/core/yo.md+11−11
@@ -13,7 +13,7 @@ days from leap years in a century (24).
1313Produces
1414--------
1515
16−An [atom]().
16+An atom.
1717
1818Source
1919------
@@ -39,7 +39,7 @@ Number of seconds in a day.
3939Produces
4040--------
4141
42−An [atom]().
42+An atom.
4343
4444Source
4545------
@@ -63,7 +63,7 @@ XX Revisit
6363Produces
6464--------
6565
66−An [atom]().
66+An atom.
6767
6868Source
6969------
@@ -86,7 +86,7 @@ seconds in a minute by the minutes in an hour.
8686Produces
8787--------
8888
89−An [atom]().
89+An atom.
9090
9191Source
9292------
@@ -134,7 +134,7 @@ The number of seconds in a minute.
134134Produces
135135--------
136136
137−An [atom]().
137+An atom.
138138
139139Source
140140------
@@ -160,12 +160,12 @@ month at the year at that index.
160160Produces
161161--------
162162
163−A [`++list`]() of [`@ud`]()
163+A `++list` of `@ud`
164164
165165Source
166166------
167167
168− ++ moh `(list ,@ud)`[31 28 31 30 31 30 31 31 30 31 30 31 ~]
168+ ++ moh `(list @ud)`[31 28 31 30 31 30 31 31 30 31 30 31 ~]
169169
170170Examples
171171--------
@@ -188,12 +188,12 @@ month at the leap-year at that index.
188188Examples
189189--------
190190
191−A [`++list`]() of [`@ud`]()
191+A `++list` of `@ud`
192192
193193Source
194194------
195195
196− ++ moy `(list ,@ud)`[31 29 31 30 31 30 31 31 30 31 30 31 ~]
196+ ++ moy `(list @ud)`[31 29 31 30 31 30 31 31 30 31 30 31 ~]
197197
198198Examples
199199--------
@@ -215,7 +215,7 @@ number of seconds in four years.
215215Produces
216216--------
217217
218−An [atom]().
218+An atom.
219219
220220Source
221221------
@@ -240,7 +240,7 @@ seconds in a day by 365.
240240Produces
241241--------
242242
243−An [atom]().
243+An atom.
244244
245245Source
246246------
docs/system/hoon/library/src/3c/gate/yall.md+8−7
@@ -17,10 +17,10 @@ Produces
1717Source
1818------
1919
20− ++ yall :: day # to day of year
21− |= day=@ud
22− ^- [y=@ud m=@ud d=@ud]
23− =+ [era=0 cet=0 lep=_?]
20+ ++ yall :: day / to day of year
21+ |= day/@ud
22+ ^- {y/@ud m/@ud d/@ud}
23+ =+ [era=0 cet=0 lep=*?]
2424 => .(era (div day era:yo), day (mod day era:yo))
2525 => ^+ .
2626 ?: (lth day +(cet:yo))
@@ -28,18 +28,19 @@ Source
2828 => .(lep |, cet 1, day (sub day +(cet:yo)))
2929 .(cet (add cet (div day cet:yo)), day (mod day cet:yo))
3030 =+ yer=(add (mul 400 era) (mul 100 cet))
31− |- ^- [y=@ud m=@ud d=@ud]
31+ |- ^- {y/@ud m/@ud d/@ud}
3232 =+ dis=?:(lep 366 365)
3333 ?. (lth day dis)
3434 =+ ner=+(yer)
3535 $(yer ner, day (sub day dis), lep =(0 (end 0 2 ner)))
36− |- ^- [y=@ud m=@ud d=@ud]
36+ |- ^- {y/@ud m/@ud d/@ud}
3737 =+ [mot=0 cah=?:(lep moy:yo moh:yo)]
38− |- ^- [y=@ud m=@ud d=@ud]
38+ |- ^- {y/@ud m/@ud d/@ud}
3939 =+ zis=(snag mot cah)
4040 ?: (lth day zis)
4141 [yer +(mot) +(day)]
4242 $(mot +(mot), day (sub day zis))
43+ ::
4344
4445Examples
4546--------
docs/system/hoon/library/src/3c/gate/yawn.md+3−2
@@ -17,13 +17,13 @@ Accepts
1717Produces
1818--------
1919
20−A [`@ud`]().
20+A `@ud`.
2121
2222Source
2323------
2424
2525 ++ yawn :: days since Jesus
26− |= [yer=@ud mot=@ud day=@ud]
26+ |= {yer/@ud mot/@ud day/@ud}
2727 ^- @ud
2828 => .(mot (dec mot), day (dec day))
2929 => ^+ .
@@ -46,6 +46,7 @@ Source
4646 =+ nec=(sub yer 100)
4747 $(yer nec, day (add day ?:((yelp nec) 36.525 36.524)))
4848 (add day (mul (div yer 400) (add 1 (mul 4 36.524))))
49+ ::
4950
5051Examples
5152--------
docs/system/hoon/library/src/3c/gate/year.md+5−4
@@ -6,25 +6,26 @@ its `@d`representation.
66Accepts
77-------
88
9−`det` is a [`++date`]()
9+`det` is a `++date`
1010
1111Produces
1212--------
1313
14−A [`@d`]().
14+A `@d`.
1515
1616Source
1717------
1818
1919 ++ year :: date to @d
20− |= det=date
21− ^- @d
20+ |= det/date
21+ ^- @da
2222 =+ ^= yer
2323 ?: a.det
2424 (add 292.277.024.400 y.det)
2525 (sub 292.277.024.400 (dec y.det))
2626 =+ day=(yawn yer m.det d.t.det)
2727 (yule day h.t.det m.t.det s.t.det f.t.det)
28+ ::
2829
2930Examples
3031--------
docs/system/hoon/library/src/3c/gate/yell.md+4−2
@@ -8,12 +8,12 @@ Source
88------
99
1010 ++ yell :: tarp from @d
11− |= now=@d
11+ |= now/@d
1212 ^- tarp
1313 =+ sec=(rsh 6 1 now)
1414 =+ ^= fan
1515 =+ [muc=4 raw=(end 6 1 now)]
16− |- ^- (list ,@ux)
16+ |- ^- (list @ux)
1717 ?: |(=(0 raw) =(0 muc))
1818 ~
1919 => .(muc (dec muc))
@@ -25,6 +25,8 @@ Source
2525 =+ mit=(div sec mit:yo)
2626 => .(sec (mod sec mit:yo))
2727 [day hor mit sec fan]
28+ ::
29+
2830
2931Examples
3032--------
docs/system/hoon/library/src/3c/gate/yore.md+3−2
@@ -10,13 +10,13 @@ Accepts
1010Produces
1111--------
1212
13−A [`++date`]().
13+A `++date`.
1414
1515Source
1616------
1717
1818 ++ yore :: @d to date
19− |= now=@d
19+ |= now/@da
2020 ^- date
2121 =+ rip=(yell now)
2222 =+ ger=(yall d.rip)
@@ -24,6 +24,7 @@ Source
2424 [a=& y=(sub y.ger 292.277.024.400)]
2525 [a=| y=+((sub 292.277.024.400 y.ger))]
2626 [m.ger d.ger h.rip m.rip s.rip f.rip]
27+ ::
2728
2829Examples
2930--------
docs/system/hoon/library/src/3c/gate/yule.md+5−4
@@ -2,24 +2,24 @@
22
33Daily time to time atom
44
5−Accept a [`++tarp`](/doc/hoon/library/1#++tarp), a parsed daily time, and produces a time atom,
5+Accept a `++tarp`, a parsed daily time, and produces a time atom,
66`@d`.
77
88Accepts
99-------
1010
11−`rip` is a [`++tarp`](/doc/hoon/library/1#++tarp).
11+`rip` is a `++tarp`.
1212
1313Produces
1414--------
1515
16−A [`@d`]().
16+A `@d`.
1717
1818Source
1919------
2020
2121 ++ yule :: time atom
22− |= rip=tarp
22+ |= rip/tarp
2323 ^- @d
2424 =+ ^= sec ;: add
2525 (mul d.rip day:yo)
@@ -34,6 +34,7 @@ Source
3434 => .(muc (dec muc))
3535 (add (lsh 4 muc i.f.rip) $(f.rip t.f.rip))
3636 (con (lsh 6 1 sec) fac)
37+ ::
3738
3839Examples
3940--------