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