From aedfcde550654c26f811fb46860fc1e401a41b6c Mon Sep 17 00:00:00 2001 From: Yader Velásquez Date: Thu, 27 Jan 2011 23:16:22 +0000 Subject: new icon, change has_key for in --- (limited to 'fecha.py') diff --git a/fecha.py b/fecha.py index 782475a..4353227 100644 --- a/fecha.py +++ b/fecha.py @@ -17,6 +17,7 @@ from time import localtime, strftime, mktime from datetime import datetime +from gettext import gettext as _ class FechaUnix(object): '''for get, convert and return dates based on the unix date''' @@ -38,18 +39,20 @@ class FechaUnix(object): return strftime("%d de %b de %Y", localtime(self.fecha_unix)) class FechaNormal(object): - '''for get, convert and return dates in our popular format''' + '''Get, convert and return dates in our popular format''' def __init__(self): - '''nothing to say''' + '''init of FechaNormal''' def fecha_actual(self): - '''return the actual date''' + '''return the actual date such as + day of month of year''' self.fecha = datetime.today() return self.fecha.strftime("%d de %B de %Y") def fecha_especial(self): '''special format of a date for - be use it like a dicctionary key''' + be use it like a dicctionary key + in the format day/month/year''' self.fecha = datetime.today() return self.fecha.strftime("%d/%m/%y") -- cgit v0.9.1