diff options
Diffstat (limited to 'fecha.py')
-rw-r--r-- | fecha.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -19,6 +19,7 @@ from time import localtime, strftime, mktime from datetime import datetime, date from gettext import gettext as _ + class FechaUnix(object): '''for get, convert and return dates based on the unix date''' @@ -38,7 +39,8 @@ class FechaUnix(object): self.fecha_unix = fecha_unix self.fecha_unix = int(self.fecha_unix) return strftime("%y%m%d", localtime(self.fecha_unix)) - + + class FechaNormal(object): '''Get, convert and return dates in our popular format''' def __init__(self): |