From a843016ab52b06030d3cd85889b44564316500f0 Mon Sep 17 00:00:00 2001 From: Yader Velásquez Date: Fri, 11 Feb 2011 00:36:51 +0000 Subject: new fuction for mark calendar --- (limited to 'fecha.py') diff --git a/fecha.py b/fecha.py index 4353227..aad0883 100644 --- a/fecha.py +++ b/fecha.py @@ -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''' -- cgit v0.9.1