We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c4f8805 + 2a63df1 commit 0df1eb7Copy full SHA for 0df1eb7
pyexcel_ods3/odsw.py
@@ -44,6 +44,14 @@ def write_row(self, array):
44
seconds = cell.seconds % 60
45
cell = "PT%02dH%02dM%02dS" % (hours, minutes, seconds)
46
value_type = "time"
47
+ if value_type == 'datetime':
48
+ cell = "%04d-%02d-%02dT%02d:%02d:%02d" % (cell.year,
49
+ cell.month,
50
+ cell.day,
51
+ cell.hour,
52
+ cell.minute,
53
+ cell.second)
54
+ value_type = "date"
55
elif value_type == "float":
56
if cell > MAX_INTEGER:
57
raise IntegerAccuracyLossError("%s is too big" % cell)
0 commit comments