writeexcel 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitattributes +1 -1
- data/.gitignore +24 -24
- data/README.rdoc +34 -55
- data/VERSION +1 -1
- data/charts/chartex.rb +316 -316
- data/charts/demo1.rb +46 -46
- data/charts/demo2.rb +65 -65
- data/charts/demo3.rb +117 -117
- data/charts/demo4.rb +119 -119
- data/charts/demo5.rb +48 -48
- data/examples/a_simple.rb +43 -43
- data/examples/autofilter.rb +265 -265
- data/examples/bigfile.rb +30 -30
- data/examples/chart_area.rb +121 -121
- data/examples/chart_bar.rb +120 -120
- data/examples/chart_column.rb +120 -120
- data/examples/chart_line.rb +120 -120
- data/examples/chart_pie.rb +108 -108
- data/examples/chart_scatter.rb +121 -121
- data/examples/chart_stock.rb +148 -148
- data/examples/chess.rb +142 -142
- data/examples/colors.rb +129 -129
- data/examples/comments1.rb +27 -27
- data/examples/comments2.rb +352 -352
- data/examples/copyformat.rb +52 -52
- data/examples/data_validate.rb +279 -279
- data/examples/date_time.rb +87 -87
- data/examples/defined_name.rb +32 -32
- data/examples/demo.rb +124 -124
- data/examples/diag_border.rb +36 -36
- data/examples/formats.rb +490 -490
- data/examples/formula_result.rb +30 -30
- data/examples/header.rb +137 -137
- data/examples/hide_sheet.rb +29 -29
- data/examples/hyperlink.rb +43 -43
- data/examples/images.rb +63 -63
- data/examples/indent.rb +31 -31
- data/examples/merge1.rb +40 -40
- data/examples/merge2.rb +45 -45
- data/examples/merge3.rb +66 -66
- data/examples/merge4.rb +83 -83
- data/examples/merge5.rb +80 -80
- data/examples/merge6.rb +67 -67
- data/examples/outline.rb +255 -255
- data/examples/outline_collapsed.rb +209 -209
- data/examples/panes.rb +113 -113
- data/examples/properties.rb +34 -34
- data/examples/properties_jp.rb +33 -33
- data/examples/protection.rb +47 -47
- data/examples/regions.rb +53 -53
- data/examples/repeat.rb +43 -43
- data/examples/right_to_left.rb +27 -27
- data/examples/row_wrap.rb +53 -53
- data/examples/stats.rb +74 -74
- data/examples/stocks.rb +81 -81
- data/examples/tab_colors.rb +31 -31
- data/examples/utf8.rb +15 -15
- data/examples/write_arrays.rb +83 -83
- data/lib/writeexcel/biffwriter.rb +232 -232
- data/lib/writeexcel/caller_info.rb +12 -12
- data/lib/writeexcel/chart.rb +2190 -2177
- data/lib/writeexcel/charts/area.rb +154 -154
- data/lib/writeexcel/charts/bar.rb +177 -177
- data/lib/writeexcel/charts/column.rb +156 -156
- data/lib/writeexcel/charts/external.rb +66 -66
- data/lib/writeexcel/charts/line.rb +154 -154
- data/lib/writeexcel/charts/pie.rb +169 -169
- data/lib/writeexcel/charts/scatter.rb +192 -192
- data/lib/writeexcel/charts/stock.rb +213 -213
- data/lib/writeexcel/colors.rb +64 -64
- data/lib/writeexcel/compatibility.rb +0 -255
- data/lib/writeexcel/debug_info.rb +37 -33
- data/lib/writeexcel/excelformulaparser.rb +587 -587
- data/lib/writeexcel/format.rb +13 -4
- data/lib/writeexcel/formula.rb +26 -9
- data/lib/writeexcel/helper.rb +68 -64
- data/lib/writeexcel/olewriter.rb +311 -311
- data/lib/writeexcel/properties.rb +242 -240
- data/lib/writeexcel/storage_lite.rb +984 -978
- data/lib/writeexcel/workbook.rb +3210 -3192
- data/lib/writeexcel/worksheet.rb +143 -51
- data/lib/writeexcel/write_file.rb +44 -40
- data/lib/writeexcel.rb +1159 -1159
- data/test/helper.rb +31 -28
- data/test/perl_output/README +31 -31
- data/test/test_00_IEEE_double.rb +13 -13
- data/test/test_01_add_worksheet.rb +10 -10
- data/test/test_02_merge_formats.rb +53 -53
- data/test/test_04_dimensions.rb +392 -392
- data/test/test_05_rows.rb +179 -179
- data/test/test_06_extsst.rb +77 -77
- data/test/test_11_date_time.rb +479 -479
- data/test/test_12_date_only.rb +501 -501
- data/test/test_13_date_seconds.rb +481 -481
- data/test/test_21_escher.rb +637 -637
- data/test/test_22_mso_drawing_group.rb +745 -745
- data/test/test_23_note.rb +73 -73
- data/test/test_24_txo.rb +75 -75
- data/test/test_25_position_object.rb +84 -84
- data/test/test_26_autofilter.rb +314 -314
- data/test/test_27_autofilter.rb +131 -131
- data/test/test_28_autofilter.rb +161 -161
- data/test/test_29_process_jpg.rb +683 -683
- data/test/test_30_validation_dval.rb +77 -77
- data/test/test_31_validation_dv_strings.rb +126 -126
- data/test/test_32_validation_dv_formula.rb +206 -206
- data/test/test_40_property_types.rb +188 -188
- data/test/test_41_properties.rb +235 -235
- data/test/test_42_set_properties.rb +437 -437
- data/test/test_50_name_stored.rb +299 -299
- data/test/test_51_name_print_area.rb +357 -357
- data/test/test_52_name_print_titles.rb +454 -454
- data/test/test_53_autofilter.rb +203 -203
- data/test/test_60_chart_generic.rb +578 -578
- data/test/test_61_chart_subclasses.rb +95 -95
- data/test/test_62_chart_formats.rb +272 -272
- data/test/test_63_chart_area_formats.rb +649 -649
- data/test/test_biff.rb +75 -75
- data/test/test_compatibility.rb +12 -627
- data/test/test_example_match.rb +3144 -3144
- data/test/test_formula.rb +61 -61
- data/test/test_ole.rb +106 -106
- data/test/test_storage_lite.rb +125 -125
- data/test/test_workbook.rb +139 -139
- data/test/test_worksheet.rb +110 -110
- data/utils/add_magic_comment.rb +80 -80
- data/writeexcel.gemspec +4 -6
- data/writeexcel.rdoc +58 -15
- metadata +9 -6
- data/test/test_new_encoding.rb +0 -205
@@ -1,481 +1,481 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
###############################################################################
|
3
|
-
#
|
4
|
-
# A test for WriteExcel.
|
5
|
-
#
|
6
|
-
# Tests date and time second handling.
|
7
|
-
#
|
8
|
-
# reverse('©'), May 2004, John McNamara, jmcnamara@cpan.org
|
9
|
-
#
|
10
|
-
# original written in Perl by John McNamara
|
11
|
-
# converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
|
12
|
-
#
|
13
|
-
############################################################################
|
14
|
-
require 'helper'
|
15
|
-
require 'stringio'
|
16
|
-
|
17
|
-
class TC_data_seconds < Test::Unit::TestCase
|
18
|
-
|
19
|
-
def setup
|
20
|
-
@workbook = WriteExcel.new(StringIO.new)
|
21
|
-
@worksheet = @workbook.add_worksheet
|
22
|
-
@fit_delta = 0.5/(24 * 60 * 60 * 1000)
|
23
|
-
end
|
24
|
-
|
25
|
-
def teardown
|
26
|
-
@workbook.close
|
27
|
-
end
|
28
|
-
|
29
|
-
def fit_cmp(a, b)
|
30
|
-
return (a-b).abs < @fit_delta
|
31
|
-
end
|
32
|
-
|
33
|
-
def test_some_false_times
|
34
|
-
# These should fail.
|
35
|
-
date_time = '1899-12-31T24:00:00.000'
|
36
|
-
assert(! @worksheet.convert_date_time(date_time),
|
37
|
-
" Testing incorrect time: #{date_time}\tincorrect hour caught.")
|
38
|
-
|
39
|
-
date_time = '1899-12-31T00:60:00.000'
|
40
|
-
assert(! @worksheet.convert_date_time(date_time),
|
41
|
-
" Testing incorrect time: #{date_time}\tincorrect mins caught.")
|
42
|
-
|
43
|
-
date_time = '1899-12-31T00:00:60.000'
|
44
|
-
assert(! @worksheet.convert_date_time(date_time),
|
45
|
-
" Testing incorrect time: $date_time\tincorrect secs caught.")
|
46
|
-
|
47
|
-
date_time = '1899-12-31T00:00:59.9999999999999999999'
|
48
|
-
assert(! @worksheet.convert_date_time(date_time),
|
49
|
-
" Testing incorrect time: $date_time\tincorrect secs caught.")
|
50
|
-
end
|
51
|
-
|
52
|
-
def test_the_time_data_generated_in_excel
|
53
|
-
lines = data_generated_excel.split(/\n/)
|
54
|
-
while !lines.empty?
|
55
|
-
line = lines.shift
|
56
|
-
braak if line =~ /^\s*# stop/ # For debugging
|
57
|
-
next unless line =~ /\S/ # Ignore blank lines
|
58
|
-
next if line =~ /^\s*#/ # Ignore comments
|
59
|
-
|
60
|
-
if line =~ /"DateTime">([^<]+)/
|
61
|
-
date_time = $1
|
62
|
-
line = lines.shift
|
63
|
-
|
64
|
-
if line =~ /"Number">([^<]+)/
|
65
|
-
number = $1.to_f
|
66
|
-
result = @worksheet.convert_date_time(date_time)
|
67
|
-
result = -1 if result.nil?
|
68
|
-
assert(fit_cmp(number, result),
|
69
|
-
"date_time: #{date_time}\n" +
|
70
|
-
"difference between #{number} and #{result}\n" +
|
71
|
-
"= #{(number - result).abs.to_s}\n" +
|
72
|
-
"> #{@fit_delta.to_s}")
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
def data_generated_excel
|
79
|
-
|
80
|
-
return <<-__DATA_END__
|
81
|
-
|
82
|
-
|
83
|
-
# Test data taken from Excel in XML format.
|
84
|
-
<Row>
|
85
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T00:00:00.000</Data></Cell>
|
86
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0</Data></Cell>
|
87
|
-
</Row>
|
88
|
-
<Row>
|
89
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T00:15:20.213</Data></Cell>
|
90
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">1.0650613425925924E-2</Data>< /Cell>
|
91
|
-
</Row>
|
92
|
-
<Row>
|
93
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T00:16:48.290</Data></Cell>
|
94
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">1.1670023148148148E-2</Data>< /Cell>
|
95
|
-
</Row>
|
96
|
-
<Row>
|
97
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T00:55:25.446</Data></Cell>
|
98
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">3.8488958333333337E-2</Data>< /Cell>
|
99
|
-
</Row>
|
100
|
-
<Row>
|
101
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T01:02:46.891</Data></Cell>
|
102
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">4.3598275462962965E-2</Data>< /Cell>
|
103
|
-
</Row>
|
104
|
-
<Row>
|
105
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T01:04:15.597</Data></Cell>
|
106
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">4.4624965277777782E-2</Data>< /Cell>
|
107
|
-
</Row>
|
108
|
-
<Row>
|
109
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T01:09:40.889</Data></Cell>
|
110
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">4.8389918981481483E-2</Data>< /Cell>
|
111
|
-
</Row>
|
112
|
-
<Row>
|
113
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T01:11:32.560</Data></Cell>
|
114
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">4.9682407407407404E-2</Data>< /Cell>
|
115
|
-
</Row>
|
116
|
-
<Row>
|
117
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T01:30:19.169</Data></Cell>
|
118
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">6.2721863425925936E-2</Data>< /Cell>
|
119
|
-
</Row>
|
120
|
-
<Row>
|
121
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T01:48:25.580</Data></Cell>
|
122
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">7.5296064814814809E-2</Data>< /Cell>
|
123
|
-
</Row>
|
124
|
-
<Row>
|
125
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T02:03:31.919</Data></Cell>
|
126
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">8.5786099537037031E-2</Data>< /Cell>
|
127
|
-
</Row>
|
128
|
-
<Row>
|
129
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T02:11:11.986</Data></Cell>
|
130
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">9.1110949074074077E-2</Data>< /Cell>
|
131
|
-
</Row>
|
132
|
-
<Row>
|
133
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T02:24:37.095</Data></Cell>
|
134
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.10042934027777778</Data></C ell>
|
135
|
-
</Row>
|
136
|
-
<Row>
|
137
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T02:35:07.220</Data></Cell>
|
138
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.1077224537037037</Data></Ce ll>
|
139
|
-
</Row>
|
140
|
-
<Row>
|
141
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T02:45:12.109</Data></Cell>
|
142
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.11472348379629631</Data></C ell>
|
143
|
-
</Row>
|
144
|
-
<Row>
|
145
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T03:06:39.990</Data></Cell>
|
146
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.12962951388888888</Data></C ell>
|
147
|
-
</Row>
|
148
|
-
<Row>
|
149
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T03:08:08.251</Data></Cell>
|
150
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.13065105324074075</Data></C ell>
|
151
|
-
</Row>
|
152
|
-
<Row>
|
153
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T03:19:12.576</Data></Cell>
|
154
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.13833999999999999</Data></C ell>
|
155
|
-
</Row>
|
156
|
-
<Row>
|
157
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T03:29:42.574</Data></Cell>
|
158
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.14563164351851851</Data></C ell>
|
159
|
-
</Row>
|
160
|
-
<Row>
|
161
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T03:37:30.813</Data></Cell>
|
162
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.1510510763888889</Data></Ce ll>
|
163
|
-
</Row>
|
164
|
-
<Row>
|
165
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T04:14:38.231</Data></Cell>
|
166
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.1768313773148148</Data></Ce ll>
|
167
|
-
</Row>
|
168
|
-
<Row>
|
169
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T04:16:28.559</Data></Cell>
|
170
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.17810832175925925</Data></C ell>
|
171
|
-
</Row>
|
172
|
-
<Row>
|
173
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T04:17:58.222</Data></Cell>
|
174
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.17914608796296297</Data></C ell>
|
175
|
-
</Row>
|
176
|
-
<Row>
|
177
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T04:21:41.794</Data></Cell>
|
178
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.18173372685185185</Data></C ell>
|
179
|
-
</Row>
|
180
|
-
<Row>
|
181
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T04:56:35.792</Data></Cell>
|
182
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.2059698148148148</Data></Ce ll>
|
183
|
-
</Row>
|
184
|
-
<Row>
|
185
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T05:25:14.885</Data></Cell>
|
186
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.22586672453703704</Data></C ell>
|
187
|
-
</Row>
|
188
|
-
<Row>
|
189
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T05:26:05.724</Data></Cell>
|
190
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.22645513888888891</Data></C ell>
|
191
|
-
</Row>
|
192
|
-
<Row>
|
193
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T05:46:44.068</Data></Cell>
|
194
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.24078782407407406</Data></C ell>
|
195
|
-
</Row>
|
196
|
-
<Row>
|
197
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T05:48:01.141</Data></Cell>
|
198
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.2416798726851852</Data></Ce ll>
|
199
|
-
</Row>
|
200
|
-
<Row>
|
201
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T05:53:52.315</Data></Cell>
|
202
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.24574438657407408</Data></C ell>
|
203
|
-
</Row>
|
204
|
-
<Row>
|
205
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T06:14:48.580</Data></Cell>
|
206
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.26028449074074073</Data></C ell>
|
207
|
-
</Row>
|
208
|
-
<Row>
|
209
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T06:46:15.738</Data></Cell>
|
210
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.28212659722222222</Data></C ell>
|
211
|
-
</Row>
|
212
|
-
<Row>
|
213
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T07:31:20.407</Data></Cell>
|
214
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.31343063657407405</Data></C ell>
|
215
|
-
</Row>
|
216
|
-
<Row>
|
217
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T07:58:33.754</Data></Cell>
|
218
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.33233511574074076</Data></C ell>
|
219
|
-
</Row>
|
220
|
-
<Row>
|
221
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T08:07:43.130</Data></Cell>
|
222
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.33869363425925925</Data></C ell>
|
223
|
-
</Row>
|
224
|
-
<Row>
|
225
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T08:29:11.091</Data></Cell>
|
226
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.35360059027777774</Data></C ell>
|
227
|
-
</Row>
|
228
|
-
<Row>
|
229
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T09:08:15.328</Data></Cell>
|
230
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.380732962962963</Data></Cel l>
|
231
|
-
</Row>
|
232
|
-
<Row>
|
233
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T09:30:41.781</Data></Cell>
|
234
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.39631690972222228</Data></C ell>
|
235
|
-
</Row>
|
236
|
-
<Row>
|
237
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T09:34:04.462</Data></Cell>
|
238
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.39866275462962958</Data></C ell>
|
239
|
-
</Row>
|
240
|
-
<Row>
|
241
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T09:37:23.945</Data></Cell>
|
242
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.40097158564814817</Data></C ell>
|
243
|
-
</Row>
|
244
|
-
<Row>
|
245
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T09:37:56.655</Data></Cell>
|
246
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.40135017361111114</Data></C ell>
|
247
|
-
</Row>
|
248
|
-
<Row>
|
249
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T09:45:12.230</Data></Cell>
|
250
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.40639155092592594</Data></C ell>
|
251
|
-
</Row>
|
252
|
-
<Row>
|
253
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T09:54:14.782</Data></Cell>
|
254
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.41267108796296298</Data></C ell>
|
255
|
-
</Row>
|
256
|
-
<Row>
|
257
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T09:54:22.108</Data></Cell>
|
258
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.41275587962962962</Data></C ell>
|
259
|
-
</Row>
|
260
|
-
<Row>
|
261
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T10:01:36.151</Data></Cell>
|
262
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.41777952546296299</Data></C ell>
|
263
|
-
</Row>
|
264
|
-
<Row>
|
265
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T12:09:48.602</Data></Cell>
|
266
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.50681252314814818</Data></C ell>
|
267
|
-
</Row>
|
268
|
-
<Row>
|
269
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T12:34:08.549</Data></Cell>
|
270
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.52371005787037039</Data></C ell>
|
271
|
-
</Row>
|
272
|
-
<Row>
|
273
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T12:56:06.495</Data></Cell>
|
274
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.53896406249999995</Data></C ell>
|
275
|
-
</Row>
|
276
|
-
<Row>
|
277
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T12:58:58.217</Data></Cell>
|
278
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.54095158564814816</Data></C ell>
|
279
|
-
</Row>
|
280
|
-
<Row>
|
281
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T12:59:54.263</Data></Cell>
|
282
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.54160026620370372</Data></C ell>
|
283
|
-
</Row>
|
284
|
-
<Row>
|
285
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T13:34:41.331</Data></Cell>
|
286
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.56575614583333333</Data></C ell>
|
287
|
-
</Row>
|
288
|
-
<Row>
|
289
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T13:58:28.601</Data></Cell>
|
290
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.58227547453703699</Data></C ell>
|
291
|
-
</Row>
|
292
|
-
<Row>
|
293
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T14:02:16.899</Data></Cell>
|
294
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.58491781249999997</Data></C ell>
|
295
|
-
</Row>
|
296
|
-
<Row>
|
297
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T14:36:17.444</Data></Cell>
|
298
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.60853523148148148</Data></C ell>
|
299
|
-
</Row>
|
300
|
-
<Row>
|
301
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T14:37:57.451</Data></Cell>
|
302
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.60969271990740748</Data></C ell>
|
303
|
-
</Row>
|
304
|
-
<Row>
|
305
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T14:57:42.757</Data></Cell>
|
306
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.6234115393518519</Data></Ce ll>
|
307
|
-
</Row>
|
308
|
-
<Row>
|
309
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T15:10:48.307</Data></Cell>
|
310
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.6325035532407407</Data></Ce ll>
|
311
|
-
</Row>
|
312
|
-
<Row>
|
313
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T15:14:39.890</Data></Cell>
|
314
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.63518391203703706</Data></C ell>
|
315
|
-
</Row>
|
316
|
-
<Row>
|
317
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T15:19:47.988</Data></Cell>
|
318
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.63874986111111109</Data></C ell>
|
319
|
-
</Row>
|
320
|
-
<Row>
|
321
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T16:04:24.344</Data></Cell>
|
322
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.66972620370370362</Data></C ell>
|
323
|
-
</Row>
|
324
|
-
<Row>
|
325
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T16:22:23.952</Data></Cell>
|
326
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.68222166666666662</Data></C ell>
|
327
|
-
</Row>
|
328
|
-
<Row>
|
329
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T16:29:55.999</Data></Cell>
|
330
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.6874536921296297</Data></Ce ll>
|
331
|
-
</Row>
|
332
|
-
<Row>
|
333
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T16:58:20.259</Data></Cell>
|
334
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.70717892361111112</Data></C ell>
|
335
|
-
</Row>
|
336
|
-
<Row>
|
337
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T17:04:02.415</Data></Cell>
|
338
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.71113906250000003</Data></C ell>
|
339
|
-
</Row>
|
340
|
-
<Row>
|
341
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T17:18:29.630</Data></Cell>
|
342
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.72117627314814825</Data></C ell>
|
343
|
-
</Row>
|
344
|
-
<Row>
|
345
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T17:47:21.323</Data></Cell>
|
346
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.74121901620370367</Data></C ell>
|
347
|
-
</Row>
|
348
|
-
<Row>
|
349
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T17:53:29.866</Data></Cell>
|
350
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.74548456018518516</Data></C ell>
|
351
|
-
</Row>
|
352
|
-
<Row>
|
353
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T17:53:41.076</Data></Cell>
|
354
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.74561430555555563</Data></C ell>
|
355
|
-
</Row>
|
356
|
-
<Row>
|
357
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T17:55:06.044</Data></Cell>
|
358
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.74659773148148145</Data></C ell>
|
359
|
-
</Row>
|
360
|
-
<Row>
|
361
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T18:14:49.151</Data></Cell>
|
362
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.760291099537037</Data></Cel l>
|
363
|
-
</Row>
|
364
|
-
<Row>
|
365
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T18:17:45.738</Data></Cell>
|
366
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.76233493055555546</Data></C ell>
|
367
|
-
</Row>
|
368
|
-
<Row>
|
369
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T18:29:59.700</Data></Cell>
|
370
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.77082986111111118</Data></C ell>
|
371
|
-
</Row>
|
372
|
-
<Row>
|
373
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T18:33:21.233</Data></Cell>
|
374
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.77316241898148153</Data></C ell>
|
375
|
-
</Row>
|
376
|
-
<Row>
|
377
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T19:14:24.673</Data></Cell>
|
378
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.80167445601851861</Data></C ell>
|
379
|
-
</Row>
|
380
|
-
<Row>
|
381
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T19:17:12.816</Data></Cell>
|
382
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.80362055555555545</Data></C ell>
|
383
|
-
</Row>
|
384
|
-
<Row>
|
385
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T19:23:36.418</Data></Cell>
|
386
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.80806039351851855</Data></C ell>
|
387
|
-
</Row>
|
388
|
-
<Row>
|
389
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T19:46:25.908</Data></Cell>
|
390
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.82391097222222232</Data></C ell>
|
391
|
-
</Row>
|
392
|
-
<Row>
|
393
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T20:07:47.314</Data></Cell>
|
394
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.83874206018518516</Data></C ell>
|
395
|
-
</Row>
|
396
|
-
<Row>
|
397
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T20:31:37.603</Data></Cell>
|
398
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.85529633101851854</Data></C ell>
|
399
|
-
</Row>
|
400
|
-
<Row>
|
401
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T20:39:57.770</Data></Cell>
|
402
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.86108530092592594</Data></C ell>
|
403
|
-
</Row>
|
404
|
-
<Row>
|
405
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T20:50:17.067</Data></Cell>
|
406
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.86825309027777775</Data></C ell>
|
407
|
-
</Row>
|
408
|
-
<Row>
|
409
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T21:02:57.827</Data></Cell>
|
410
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.87705818287037041</Data></C ell>
|
411
|
-
</Row>
|
412
|
-
<Row>
|
413
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T21:23:05.519</Data></Cell>
|
414
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.891036099537037</Data></Cel l>
|
415
|
-
</Row>
|
416
|
-
<Row>
|
417
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T21:34:49.572</Data></Cell>
|
418
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.89918486111111118</Data></C ell>
|
419
|
-
</Row>
|
420
|
-
<Row>
|
421
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T21:39:05.944</Data></Cell>
|
422
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.90215212962962965</Data></C ell>
|
423
|
-
</Row>
|
424
|
-
<Row>
|
425
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T21:39:18.426</Data></Cell>
|
426
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.90229659722222222</Data></C ell>
|
427
|
-
</Row>
|
428
|
-
<Row>
|
429
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T21:46:07.769</Data></Cell>
|
430
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.90703436342592603</Data></C ell>
|
431
|
-
</Row>
|
432
|
-
<Row>
|
433
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T21:57:55.662</Data></Cell>
|
434
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.91522756944444439</Data></C ell>
|
435
|
-
</Row>
|
436
|
-
<Row>
|
437
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T22:19:11.732</Data></Cell>
|
438
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.92999689814814823</Data></C ell>
|
439
|
-
</Row>
|
440
|
-
<Row>
|
441
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T22:23:51.376</Data></Cell>
|
442
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.93323351851851843</Data></C ell>
|
443
|
-
</Row>
|
444
|
-
<Row>
|
445
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T22:27:58.771</Data></Cell>
|
446
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.93609688657407408</Data></C ell>
|
447
|
-
</Row>
|
448
|
-
<Row>
|
449
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T22:43:30.392</Data></Cell>
|
450
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.94687953703703709</Data></C ell>
|
451
|
-
</Row>
|
452
|
-
<Row>
|
453
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T22:48:25.834</Data></Cell>
|
454
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.95029900462962968</Data></C ell>
|
455
|
-
</Row>
|
456
|
-
<Row>
|
457
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T22:53:51.727</Data></Cell>
|
458
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.95407091435185187</Data></C ell>
|
459
|
-
</Row>
|
460
|
-
<Row>
|
461
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T23:12:56.536</Data></Cell>
|
462
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.96732101851851848</Data></C ell>
|
463
|
-
</Row>
|
464
|
-
<Row>
|
465
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T23:15:54.109</Data></Cell>
|
466
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.96937626157407408</Data></C ell>
|
467
|
-
</Row>
|
468
|
-
<Row>
|
469
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T23:17:12.632</Data></Cell>
|
470
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.97028509259259266</Data></C ell>
|
471
|
-
</Row>
|
472
|
-
<Row>
|
473
|
-
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T23:59:59.999</Data></Cell>
|
474
|
-
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.99999998842592586</Data></C ell>
|
475
|
-
</Row>
|
476
|
-
|
477
|
-
__DATA_END__
|
478
|
-
|
479
|
-
end
|
480
|
-
|
481
|
-
end
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
###############################################################################
|
3
|
+
#
|
4
|
+
# A test for WriteExcel.
|
5
|
+
#
|
6
|
+
# Tests date and time second handling.
|
7
|
+
#
|
8
|
+
# reverse('©'), May 2004, John McNamara, jmcnamara@cpan.org
|
9
|
+
#
|
10
|
+
# original written in Perl by John McNamara
|
11
|
+
# converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
|
12
|
+
#
|
13
|
+
############################################################################
|
14
|
+
require 'helper'
|
15
|
+
require 'stringio'
|
16
|
+
|
17
|
+
class TC_data_seconds < Test::Unit::TestCase
|
18
|
+
|
19
|
+
def setup
|
20
|
+
@workbook = WriteExcel.new(StringIO.new)
|
21
|
+
@worksheet = @workbook.add_worksheet
|
22
|
+
@fit_delta = 0.5/(24 * 60 * 60 * 1000)
|
23
|
+
end
|
24
|
+
|
25
|
+
def teardown
|
26
|
+
@workbook.close
|
27
|
+
end
|
28
|
+
|
29
|
+
def fit_cmp(a, b)
|
30
|
+
return (a-b).abs < @fit_delta
|
31
|
+
end
|
32
|
+
|
33
|
+
def test_some_false_times
|
34
|
+
# These should fail.
|
35
|
+
date_time = '1899-12-31T24:00:00.000'
|
36
|
+
assert(! @worksheet.convert_date_time(date_time),
|
37
|
+
" Testing incorrect time: #{date_time}\tincorrect hour caught.")
|
38
|
+
|
39
|
+
date_time = '1899-12-31T00:60:00.000'
|
40
|
+
assert(! @worksheet.convert_date_time(date_time),
|
41
|
+
" Testing incorrect time: #{date_time}\tincorrect mins caught.")
|
42
|
+
|
43
|
+
date_time = '1899-12-31T00:00:60.000'
|
44
|
+
assert(! @worksheet.convert_date_time(date_time),
|
45
|
+
" Testing incorrect time: $date_time\tincorrect secs caught.")
|
46
|
+
|
47
|
+
date_time = '1899-12-31T00:00:59.9999999999999999999'
|
48
|
+
assert(! @worksheet.convert_date_time(date_time),
|
49
|
+
" Testing incorrect time: $date_time\tincorrect secs caught.")
|
50
|
+
end
|
51
|
+
|
52
|
+
def test_the_time_data_generated_in_excel
|
53
|
+
lines = data_generated_excel.split(/\n/)
|
54
|
+
while !lines.empty?
|
55
|
+
line = lines.shift
|
56
|
+
braak if line =~ /^\s*# stop/ # For debugging
|
57
|
+
next unless line =~ /\S/ # Ignore blank lines
|
58
|
+
next if line =~ /^\s*#/ # Ignore comments
|
59
|
+
|
60
|
+
if line =~ /"DateTime">([^<]+)/
|
61
|
+
date_time = $1
|
62
|
+
line = lines.shift
|
63
|
+
|
64
|
+
if line =~ /"Number">([^<]+)/
|
65
|
+
number = $1.to_f
|
66
|
+
result = @worksheet.convert_date_time(date_time)
|
67
|
+
result = -1 if result.nil?
|
68
|
+
assert(fit_cmp(number, result),
|
69
|
+
"date_time: #{date_time}\n" +
|
70
|
+
"difference between #{number} and #{result}\n" +
|
71
|
+
"= #{(number - result).abs.to_s}\n" +
|
72
|
+
"> #{@fit_delta.to_s}")
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
def data_generated_excel
|
79
|
+
|
80
|
+
return <<-__DATA_END__
|
81
|
+
|
82
|
+
|
83
|
+
# Test data taken from Excel in XML format.
|
84
|
+
<Row>
|
85
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T00:00:00.000</Data></Cell>
|
86
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0</Data></Cell>
|
87
|
+
</Row>
|
88
|
+
<Row>
|
89
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T00:15:20.213</Data></Cell>
|
90
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">1.0650613425925924E-2</Data>< /Cell>
|
91
|
+
</Row>
|
92
|
+
<Row>
|
93
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T00:16:48.290</Data></Cell>
|
94
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">1.1670023148148148E-2</Data>< /Cell>
|
95
|
+
</Row>
|
96
|
+
<Row>
|
97
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T00:55:25.446</Data></Cell>
|
98
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">3.8488958333333337E-2</Data>< /Cell>
|
99
|
+
</Row>
|
100
|
+
<Row>
|
101
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T01:02:46.891</Data></Cell>
|
102
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">4.3598275462962965E-2</Data>< /Cell>
|
103
|
+
</Row>
|
104
|
+
<Row>
|
105
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T01:04:15.597</Data></Cell>
|
106
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">4.4624965277777782E-2</Data>< /Cell>
|
107
|
+
</Row>
|
108
|
+
<Row>
|
109
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T01:09:40.889</Data></Cell>
|
110
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">4.8389918981481483E-2</Data>< /Cell>
|
111
|
+
</Row>
|
112
|
+
<Row>
|
113
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T01:11:32.560</Data></Cell>
|
114
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">4.9682407407407404E-2</Data>< /Cell>
|
115
|
+
</Row>
|
116
|
+
<Row>
|
117
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T01:30:19.169</Data></Cell>
|
118
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">6.2721863425925936E-2</Data>< /Cell>
|
119
|
+
</Row>
|
120
|
+
<Row>
|
121
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T01:48:25.580</Data></Cell>
|
122
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">7.5296064814814809E-2</Data>< /Cell>
|
123
|
+
</Row>
|
124
|
+
<Row>
|
125
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T02:03:31.919</Data></Cell>
|
126
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">8.5786099537037031E-2</Data>< /Cell>
|
127
|
+
</Row>
|
128
|
+
<Row>
|
129
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T02:11:11.986</Data></Cell>
|
130
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">9.1110949074074077E-2</Data>< /Cell>
|
131
|
+
</Row>
|
132
|
+
<Row>
|
133
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T02:24:37.095</Data></Cell>
|
134
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.10042934027777778</Data></C ell>
|
135
|
+
</Row>
|
136
|
+
<Row>
|
137
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T02:35:07.220</Data></Cell>
|
138
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.1077224537037037</Data></Ce ll>
|
139
|
+
</Row>
|
140
|
+
<Row>
|
141
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T02:45:12.109</Data></Cell>
|
142
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.11472348379629631</Data></C ell>
|
143
|
+
</Row>
|
144
|
+
<Row>
|
145
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T03:06:39.990</Data></Cell>
|
146
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.12962951388888888</Data></C ell>
|
147
|
+
</Row>
|
148
|
+
<Row>
|
149
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T03:08:08.251</Data></Cell>
|
150
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.13065105324074075</Data></C ell>
|
151
|
+
</Row>
|
152
|
+
<Row>
|
153
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T03:19:12.576</Data></Cell>
|
154
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.13833999999999999</Data></C ell>
|
155
|
+
</Row>
|
156
|
+
<Row>
|
157
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T03:29:42.574</Data></Cell>
|
158
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.14563164351851851</Data></C ell>
|
159
|
+
</Row>
|
160
|
+
<Row>
|
161
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T03:37:30.813</Data></Cell>
|
162
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.1510510763888889</Data></Ce ll>
|
163
|
+
</Row>
|
164
|
+
<Row>
|
165
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T04:14:38.231</Data></Cell>
|
166
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.1768313773148148</Data></Ce ll>
|
167
|
+
</Row>
|
168
|
+
<Row>
|
169
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T04:16:28.559</Data></Cell>
|
170
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.17810832175925925</Data></C ell>
|
171
|
+
</Row>
|
172
|
+
<Row>
|
173
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T04:17:58.222</Data></Cell>
|
174
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.17914608796296297</Data></C ell>
|
175
|
+
</Row>
|
176
|
+
<Row>
|
177
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T04:21:41.794</Data></Cell>
|
178
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.18173372685185185</Data></C ell>
|
179
|
+
</Row>
|
180
|
+
<Row>
|
181
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T04:56:35.792</Data></Cell>
|
182
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.2059698148148148</Data></Ce ll>
|
183
|
+
</Row>
|
184
|
+
<Row>
|
185
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T05:25:14.885</Data></Cell>
|
186
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.22586672453703704</Data></C ell>
|
187
|
+
</Row>
|
188
|
+
<Row>
|
189
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T05:26:05.724</Data></Cell>
|
190
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.22645513888888891</Data></C ell>
|
191
|
+
</Row>
|
192
|
+
<Row>
|
193
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T05:46:44.068</Data></Cell>
|
194
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.24078782407407406</Data></C ell>
|
195
|
+
</Row>
|
196
|
+
<Row>
|
197
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T05:48:01.141</Data></Cell>
|
198
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.2416798726851852</Data></Ce ll>
|
199
|
+
</Row>
|
200
|
+
<Row>
|
201
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T05:53:52.315</Data></Cell>
|
202
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.24574438657407408</Data></C ell>
|
203
|
+
</Row>
|
204
|
+
<Row>
|
205
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T06:14:48.580</Data></Cell>
|
206
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.26028449074074073</Data></C ell>
|
207
|
+
</Row>
|
208
|
+
<Row>
|
209
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T06:46:15.738</Data></Cell>
|
210
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.28212659722222222</Data></C ell>
|
211
|
+
</Row>
|
212
|
+
<Row>
|
213
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T07:31:20.407</Data></Cell>
|
214
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.31343063657407405</Data></C ell>
|
215
|
+
</Row>
|
216
|
+
<Row>
|
217
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T07:58:33.754</Data></Cell>
|
218
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.33233511574074076</Data></C ell>
|
219
|
+
</Row>
|
220
|
+
<Row>
|
221
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T08:07:43.130</Data></Cell>
|
222
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.33869363425925925</Data></C ell>
|
223
|
+
</Row>
|
224
|
+
<Row>
|
225
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T08:29:11.091</Data></Cell>
|
226
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.35360059027777774</Data></C ell>
|
227
|
+
</Row>
|
228
|
+
<Row>
|
229
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T09:08:15.328</Data></Cell>
|
230
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.380732962962963</Data></Cel l>
|
231
|
+
</Row>
|
232
|
+
<Row>
|
233
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T09:30:41.781</Data></Cell>
|
234
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.39631690972222228</Data></C ell>
|
235
|
+
</Row>
|
236
|
+
<Row>
|
237
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T09:34:04.462</Data></Cell>
|
238
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.39866275462962958</Data></C ell>
|
239
|
+
</Row>
|
240
|
+
<Row>
|
241
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T09:37:23.945</Data></Cell>
|
242
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.40097158564814817</Data></C ell>
|
243
|
+
</Row>
|
244
|
+
<Row>
|
245
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T09:37:56.655</Data></Cell>
|
246
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.40135017361111114</Data></C ell>
|
247
|
+
</Row>
|
248
|
+
<Row>
|
249
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T09:45:12.230</Data></Cell>
|
250
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.40639155092592594</Data></C ell>
|
251
|
+
</Row>
|
252
|
+
<Row>
|
253
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T09:54:14.782</Data></Cell>
|
254
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.41267108796296298</Data></C ell>
|
255
|
+
</Row>
|
256
|
+
<Row>
|
257
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T09:54:22.108</Data></Cell>
|
258
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.41275587962962962</Data></C ell>
|
259
|
+
</Row>
|
260
|
+
<Row>
|
261
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T10:01:36.151</Data></Cell>
|
262
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.41777952546296299</Data></C ell>
|
263
|
+
</Row>
|
264
|
+
<Row>
|
265
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T12:09:48.602</Data></Cell>
|
266
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.50681252314814818</Data></C ell>
|
267
|
+
</Row>
|
268
|
+
<Row>
|
269
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T12:34:08.549</Data></Cell>
|
270
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.52371005787037039</Data></C ell>
|
271
|
+
</Row>
|
272
|
+
<Row>
|
273
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T12:56:06.495</Data></Cell>
|
274
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.53896406249999995</Data></C ell>
|
275
|
+
</Row>
|
276
|
+
<Row>
|
277
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T12:58:58.217</Data></Cell>
|
278
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.54095158564814816</Data></C ell>
|
279
|
+
</Row>
|
280
|
+
<Row>
|
281
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T12:59:54.263</Data></Cell>
|
282
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.54160026620370372</Data></C ell>
|
283
|
+
</Row>
|
284
|
+
<Row>
|
285
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T13:34:41.331</Data></Cell>
|
286
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.56575614583333333</Data></C ell>
|
287
|
+
</Row>
|
288
|
+
<Row>
|
289
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T13:58:28.601</Data></Cell>
|
290
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.58227547453703699</Data></C ell>
|
291
|
+
</Row>
|
292
|
+
<Row>
|
293
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T14:02:16.899</Data></Cell>
|
294
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.58491781249999997</Data></C ell>
|
295
|
+
</Row>
|
296
|
+
<Row>
|
297
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T14:36:17.444</Data></Cell>
|
298
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.60853523148148148</Data></C ell>
|
299
|
+
</Row>
|
300
|
+
<Row>
|
301
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T14:37:57.451</Data></Cell>
|
302
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.60969271990740748</Data></C ell>
|
303
|
+
</Row>
|
304
|
+
<Row>
|
305
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T14:57:42.757</Data></Cell>
|
306
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.6234115393518519</Data></Ce ll>
|
307
|
+
</Row>
|
308
|
+
<Row>
|
309
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T15:10:48.307</Data></Cell>
|
310
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.6325035532407407</Data></Ce ll>
|
311
|
+
</Row>
|
312
|
+
<Row>
|
313
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T15:14:39.890</Data></Cell>
|
314
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.63518391203703706</Data></C ell>
|
315
|
+
</Row>
|
316
|
+
<Row>
|
317
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T15:19:47.988</Data></Cell>
|
318
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.63874986111111109</Data></C ell>
|
319
|
+
</Row>
|
320
|
+
<Row>
|
321
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T16:04:24.344</Data></Cell>
|
322
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.66972620370370362</Data></C ell>
|
323
|
+
</Row>
|
324
|
+
<Row>
|
325
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T16:22:23.952</Data></Cell>
|
326
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.68222166666666662</Data></C ell>
|
327
|
+
</Row>
|
328
|
+
<Row>
|
329
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T16:29:55.999</Data></Cell>
|
330
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.6874536921296297</Data></Ce ll>
|
331
|
+
</Row>
|
332
|
+
<Row>
|
333
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T16:58:20.259</Data></Cell>
|
334
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.70717892361111112</Data></C ell>
|
335
|
+
</Row>
|
336
|
+
<Row>
|
337
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T17:04:02.415</Data></Cell>
|
338
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.71113906250000003</Data></C ell>
|
339
|
+
</Row>
|
340
|
+
<Row>
|
341
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T17:18:29.630</Data></Cell>
|
342
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.72117627314814825</Data></C ell>
|
343
|
+
</Row>
|
344
|
+
<Row>
|
345
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T17:47:21.323</Data></Cell>
|
346
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.74121901620370367</Data></C ell>
|
347
|
+
</Row>
|
348
|
+
<Row>
|
349
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T17:53:29.866</Data></Cell>
|
350
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.74548456018518516</Data></C ell>
|
351
|
+
</Row>
|
352
|
+
<Row>
|
353
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T17:53:41.076</Data></Cell>
|
354
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.74561430555555563</Data></C ell>
|
355
|
+
</Row>
|
356
|
+
<Row>
|
357
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T17:55:06.044</Data></Cell>
|
358
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.74659773148148145</Data></C ell>
|
359
|
+
</Row>
|
360
|
+
<Row>
|
361
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T18:14:49.151</Data></Cell>
|
362
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.760291099537037</Data></Cel l>
|
363
|
+
</Row>
|
364
|
+
<Row>
|
365
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T18:17:45.738</Data></Cell>
|
366
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.76233493055555546</Data></C ell>
|
367
|
+
</Row>
|
368
|
+
<Row>
|
369
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T18:29:59.700</Data></Cell>
|
370
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.77082986111111118</Data></C ell>
|
371
|
+
</Row>
|
372
|
+
<Row>
|
373
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T18:33:21.233</Data></Cell>
|
374
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.77316241898148153</Data></C ell>
|
375
|
+
</Row>
|
376
|
+
<Row>
|
377
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T19:14:24.673</Data></Cell>
|
378
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.80167445601851861</Data></C ell>
|
379
|
+
</Row>
|
380
|
+
<Row>
|
381
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T19:17:12.816</Data></Cell>
|
382
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.80362055555555545</Data></C ell>
|
383
|
+
</Row>
|
384
|
+
<Row>
|
385
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T19:23:36.418</Data></Cell>
|
386
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.80806039351851855</Data></C ell>
|
387
|
+
</Row>
|
388
|
+
<Row>
|
389
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T19:46:25.908</Data></Cell>
|
390
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.82391097222222232</Data></C ell>
|
391
|
+
</Row>
|
392
|
+
<Row>
|
393
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T20:07:47.314</Data></Cell>
|
394
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.83874206018518516</Data></C ell>
|
395
|
+
</Row>
|
396
|
+
<Row>
|
397
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T20:31:37.603</Data></Cell>
|
398
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.85529633101851854</Data></C ell>
|
399
|
+
</Row>
|
400
|
+
<Row>
|
401
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T20:39:57.770</Data></Cell>
|
402
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.86108530092592594</Data></C ell>
|
403
|
+
</Row>
|
404
|
+
<Row>
|
405
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T20:50:17.067</Data></Cell>
|
406
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.86825309027777775</Data></C ell>
|
407
|
+
</Row>
|
408
|
+
<Row>
|
409
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T21:02:57.827</Data></Cell>
|
410
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.87705818287037041</Data></C ell>
|
411
|
+
</Row>
|
412
|
+
<Row>
|
413
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T21:23:05.519</Data></Cell>
|
414
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.891036099537037</Data></Cel l>
|
415
|
+
</Row>
|
416
|
+
<Row>
|
417
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T21:34:49.572</Data></Cell>
|
418
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.89918486111111118</Data></C ell>
|
419
|
+
</Row>
|
420
|
+
<Row>
|
421
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T21:39:05.944</Data></Cell>
|
422
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.90215212962962965</Data></C ell>
|
423
|
+
</Row>
|
424
|
+
<Row>
|
425
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T21:39:18.426</Data></Cell>
|
426
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.90229659722222222</Data></C ell>
|
427
|
+
</Row>
|
428
|
+
<Row>
|
429
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T21:46:07.769</Data></Cell>
|
430
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.90703436342592603</Data></C ell>
|
431
|
+
</Row>
|
432
|
+
<Row>
|
433
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T21:57:55.662</Data></Cell>
|
434
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.91522756944444439</Data></C ell>
|
435
|
+
</Row>
|
436
|
+
<Row>
|
437
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T22:19:11.732</Data></Cell>
|
438
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.92999689814814823</Data></C ell>
|
439
|
+
</Row>
|
440
|
+
<Row>
|
441
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T22:23:51.376</Data></Cell>
|
442
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.93323351851851843</Data></C ell>
|
443
|
+
</Row>
|
444
|
+
<Row>
|
445
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T22:27:58.771</Data></Cell>
|
446
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.93609688657407408</Data></C ell>
|
447
|
+
</Row>
|
448
|
+
<Row>
|
449
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T22:43:30.392</Data></Cell>
|
450
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.94687953703703709</Data></C ell>
|
451
|
+
</Row>
|
452
|
+
<Row>
|
453
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T22:48:25.834</Data></Cell>
|
454
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.95029900462962968</Data></C ell>
|
455
|
+
</Row>
|
456
|
+
<Row>
|
457
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T22:53:51.727</Data></Cell>
|
458
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.95407091435185187</Data></C ell>
|
459
|
+
</Row>
|
460
|
+
<Row>
|
461
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T23:12:56.536</Data></Cell>
|
462
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.96732101851851848</Data></C ell>
|
463
|
+
</Row>
|
464
|
+
<Row>
|
465
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T23:15:54.109</Data></Cell>
|
466
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.96937626157407408</Data></C ell>
|
467
|
+
</Row>
|
468
|
+
<Row>
|
469
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T23:17:12.632</Data></Cell>
|
470
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.97028509259259266</Data></C ell>
|
471
|
+
</Row>
|
472
|
+
<Row>
|
473
|
+
<Cell ss:StyleID="s22"><Data ss:Type="DateTime">1899-12-31T23:59:59.999</Data></Cell>
|
474
|
+
<Cell ss:StyleID="s23" ss:Formula="=RC[-1]"><Data ss:Type="Number">0.99999998842592586</Data></C ell>
|
475
|
+
</Row>
|
476
|
+
|
477
|
+
__DATA_END__
|
478
|
+
|
479
|
+
end
|
480
|
+
|
481
|
+
end
|