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-01-27 23:16:22 (GMT)
committer Yader Velásquez <yajosev@gmail.com>2011-01-27 23:16:22 (GMT)
commitaedfcde550654c26f811fb46860fc1e401a41b6c (patch)
tree3204522cd5c3ce480ba3b0ddf724971e45dc0ea8 /fecha.py
parent252e895433b6b3addc223dae299abd440b74fb80 (diff)
new icon, change has_key for in
Diffstat (limited to 'fecha.py')
-rw-r--r--fecha.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/fecha.py b/fecha.py
index 782475a..4353227 100644
--- a/fecha.py
+++ b/fecha.py
@@ -17,6 +17,7 @@
from time import localtime, strftime, mktime
from datetime import datetime
+from gettext import gettext as _
class FechaUnix(object):
'''for get, convert and return dates based on the unix date'''
@@ -38,18 +39,20 @@ class FechaUnix(object):
return strftime("%d de %b de %Y", localtime(self.fecha_unix))
class FechaNormal(object):
- '''for get, convert and return dates in our popular format'''
+ '''Get, convert and return dates in our popular format'''
def __init__(self):
- '''nothing to say'''
+ '''init of FechaNormal'''
def fecha_actual(self):
- '''return the actual date'''
+ '''return the actual date such as
+ day of month of year'''
self.fecha = datetime.today()
return self.fecha.strftime("%d de %B de %Y")
def fecha_especial(self):
'''special format of a date for
- be use it like a dicctionary key'''
+ be use it like a dicctionary key
+ in the format day/month/year'''
self.fecha = datetime.today()
return self.fecha.strftime("%d/%m/%y")