File tree 1 file changed +6
-4
lines changed
arch/esp8266/forth/examples
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ variable: timezone
40
40
: >ts ( d m y -- ts ) days 86400 * ;
41
41
42
42
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
47
47
cell field: .offset \ Offset from UTC in minutes
48
48
cell field: .name
49
49
constant: RULE
55
55
constant: TZ
56
56
: tz: TZ create: allot ;
57
57
58
+ ( US West Coast )
58
59
rule: PST
59
60
1 PST .week !
60
61
7 PST .dow !
@@ -73,6 +74,7 @@ tz: US3
73
74
PST US3 .standard !
74
75
PDT US3 .summer !
75
76
77
+ ( US East Coast )
76
78
rule: EST
77
79
1 EST .week !
78
80
7 EST .dow !
You can’t perform that action at this time.
0 commit comments