diff options
Diffstat (limited to 'fecha.py')
-rw-r--r-- | fecha.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -32,11 +32,12 @@ class FechaUnix(object): self.fecha_unix = int(self.fecha_unix) return str(self.fecha_unix) - def fecha_formato(self, fecha_unix): - '''return a nice date from an unix date''' + def indice_unix(self, fecha_unix): + '''return a string to be use it like + a index''' self.fecha_unix = fecha_unix self.fecha_unix = int(self.fecha_unix) - return strftime("%d de %b de %Y", localtime(self.fecha_unix)) + return strftime("%y%m%d", localtime(self.fecha_unix)) class FechaNormal(object): '''Get, convert and return dates in our popular format''' |