Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/fecha.py
diff options
context:
space:
mode:
Diffstat (limited to 'fecha.py')
-rw-r--r--fecha.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fecha.py b/fecha.py
index c955b99..a76fb89 100644
--- a/fecha.py
+++ b/fecha.py
@@ -23,11 +23,11 @@ class FechaUnix(object):
def __init__(self, lista):
'''init class'''
- self.fecha = datetime(lista[0], lista[1] + 1, lista[2]) #Calendar signal return month -1
+ self.fecha = datetime(lista[0], lista[1] + 1, lista[2])
def fecha_unix(self):
'''return a string of the actual date in unix format'''
- self.fecha_unix = mktime(self.fecha.timetuple()) #guarda a fecha unix para guardar en las actividades
+ self.fecha_unix = mktime(self.fecha.timetuple())
self.fecha_unix = int(self.fecha_unix)
return str(self.fecha_unix)