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, 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))
-
+