Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/fecha.py
diff options
context:
space:
mode:
Diffstat (limited to 'fecha.py')
-rw-r--r--fecha.py7
1 files changed, 4 insertions, 3 deletions
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'''