Skip to content

Commit 7e28241

Browse files
committed
fixed comments
1 parent 647323b commit 7e28241

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

arch/esp8266/forth/examples/example-clock.forth

+6-4
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ variable: timezone
4040
: >ts ( d m y -- ts ) days 86400 * ;
4141

4242
struct
43-
cell field: .week \ last = 0 first second third fourth
44-
cell field: .dow \ 1..7 = mon..sun
45-
cell field: .month \ Jan = 1 .. Dec
46-
cell field: .hour \ 0 .. 23
43+
cell field: .week \ 1st..4th
44+
cell field: .dow \ 1..7 mon..sun
45+
cell field: .month \ 1..12
46+
cell field: .hour \ 0..23
4747
cell field: .offset \ Offset from UTC in minutes
4848
cell field: .name
4949
constant: RULE
@@ -55,6 +55,7 @@ struct
5555
constant: TZ
5656
: tz: TZ create: allot ;
5757

58+
( US West Coast )
5859
rule: PST
5960
1 PST .week !
6061
7 PST .dow !
@@ -73,6 +74,7 @@ tz: US3
7374
PST US3 .standard !
7475
PDT US3 .summer !
7576

77+
( US East Coast )
7678
rule: EST
7779
1 EST .week !
7880
7 EST .dow !

0 commit comments

Comments
 (0)