Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/fecha.py
diff options
context:
space:
mode:
authorYader 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)
commita843016ab52b06030d3cd85889b44564316500f0 (patch)
tree515f439de6ee00e43bc66a8713ed71c7ad518de2 /fecha.py
parent307971bb5757a88b368d31ba698fbf3851707ecd (diff)
new fuction for mark calendar
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'''