diff options
author | Yader Velásquez <yajosev@gmail.com> | 2011-01-27 23:16:22 (GMT) |
---|---|---|
committer | Yader Velásquez <yajosev@gmail.com> | 2011-01-27 23:16:22 (GMT) |
commit | aedfcde550654c26f811fb46860fc1e401a41b6c (patch) | |
tree | 3204522cd5c3ce480ba3b0ddf724971e45dc0ea8 /fecha.py | |
parent | 252e895433b6b3addc223dae299abd440b74fb80 (diff) |
new icon, change has_key for in
Diffstat (limited to 'fecha.py')
-rw-r--r-- | fecha.py | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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") |