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.
1 parent c4f8805 commit ad14702Copy full SHA for ad14702
pyexcel_ods3/odsw.py
@@ -44,6 +44,10 @@ 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, cell.month, cell.day,
49
+ cell.hour, cell.minute, cell.second)
50
+ value_type = "date"
51
elif value_type == "float":
52
if cell > MAX_INTEGER:
53
raise IntegerAccuracyLossError("%s is too big" % cell)
0 commit comments