File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ to-itime: func [
16
16
time [time! number! block! none! ]
17
17
] [
18
18
time: make time! time
19
- format/pad [2 #":" 2 #":" 2 ] reduce [
20
- time/hour time/minute round /down time/second
19
+ format/pad [- 2 #":" - 2 #":" - 2 ] reduce [
20
+ time/hour time/minute to integer! time/second
21
21
] #"0"
22
22
]
23
23
Original file line number Diff line number Diff line change @@ -109,6 +109,10 @@ Rebol [
109
109
===end-group===
110
110
111
111
===start-group=== "Internet date"
112
+ --test-- "TO-ITIME (Normalized time as used in TO-IDATE"
113
+ --assert "09:04:05" = to-itime 9:4:5
114
+ --assert "13:24:05" = to-itime 13:24:5.21
115
+
112
116
--test-- "TO-IDATE (Date to Internet date)"
113
117
--assert "Thu, 28 Mar 2019 20:00:59 +0100" = to-idate 28-Mar-2019/20:00:59+1:00
114
118
--assert "Thu, 28 Mar 2019 19:00:59 GMT" = to-idate/gmt 28-Mar-2019/20:00:59+1:00
@@ -121,6 +125,7 @@ Rebol [
121
125
--assert 28-Mar-2019/0:00 = to-date to-binary "Thu, 28 Mar 2019 00:00:00 +0000"
122
126
--assert 4-Apr-2019/19:41:46 = to-date "Thu, 04 Apr 2019 19:41:46 GMT"
123
127
128
+
124
129
===end-group===
125
130
126
131
~~~end-file~~~
You can’t perform that action at this time.
0 commit comments