Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/fecha.py
diff options
context:
space:
mode:
authorYader Velásquez <yajosev@gmail.com>2010-09-04 23:02:32 (GMT)
committer Yader Velásquez <yajosev@gmail.com>2010-09-04 23:02:32 (GMT)
commit8167ae798c3f2742b4722410c099151b0f0f2254 (patch)
tree1bb5ac89c579a2a7852f0ac0517cbb658fb0b419 /fecha.py
parent7d61e31da70d9d66d9698e0ef171c2671070f4f0 (diff)
sugarizado
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)