diff options
author | Yader Velásquez <yajosev@gmail.com> | 2011-02-11 00:36:51 (GMT) |
---|---|---|
committer | Yader Velásquez <yajosev@gmail.com> | 2011-02-11 00:36:51 (GMT) |
commit | a843016ab52b06030d3cd85889b44564316500f0 (patch) | |
tree | 515f439de6ee00e43bc66a8713ed71c7ad518de2 /fecha.py | |
parent | 307971bb5757a88b368d31ba698fbf3851707ecd (diff) |
new fuction for mark calendar
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''' |