OpenPYXL - ¿Fallo con la función NOW?
Publicado por Enrique (13 intervenciones) el 02/12/2016 11:52:10
El script que muestro a continuación, abre una hoja de cálculo nueva ye introduce valores en tres celdas.
¿Por qué como fecha actual me graba 12/02/2016?
Agradeceré vuestra ayuda
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/python3
from openpyxl import Workbook
import time
book = Workbook()
sheet = book.active
sheet['A1'] = 56
sheet['A2'] = 43
now = time.strftime("%x")
sheet['A3'] = now
print now
book.save("sample.xlsx")
¿Por qué como fecha actual me graba 12/02/2016?
Agradeceré vuestra ayuda
Valora esta pregunta


0