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>2010-08-24 02:29:39 (GMT)
committer Yader Velásquez <yajosev@gmail.com>2010-08-24 02:29:39 (GMT)
commit8aae2f622c489574b341130440241fc75eec90b9 (patch)
treec2cbda89b8b6658b1ce72e2a674842feaede0be7 /fecha.py
parentf77564a82678f910820b28833c63d8b19d6cf3e5 (diff)
date functions
Diffstat (limited to 'fecha.py')
-rw-r--r--fecha.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/fecha.py b/fecha.py
index 5009c10..dc12746 100644
--- a/fecha.py
+++ b/fecha.py
@@ -24,6 +24,11 @@ def fecha():
fecha = datetime.today()
return fecha.strftime("%d de %B de %Y")
+def fecha_cadena():
+ '''return a string of the date'''
+ fecha = datetime.today()
+ return fecha.strftime("%y-%b-%d")
+
class Fecha(object):
'''a simple class for get and convert date'''
@@ -42,4 +47,4 @@ class Fecha(object):
self.fecha_unix = mktime(self.fecha.timetuple())
self.fecha_unix = int(self.fecha_unix)
return strftime("%d de %b de %Y", localtime(self.fecha_unix))
-
+