From 8167ae798c3f2742b4722410c099151b0f0f2254 Mon Sep 17 00:00:00 2001 From: Yader Velásquez Date: Sat, 04 Sep 2010 23:02:32 +0000 Subject: sugarizado --- (limited to 'fecha.py') 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) -- cgit v0.9.1