/[ambar]/ambar/fechahoramine.py
ViewVC logotype

Diff of /ambar/fechahoramine.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by amoyav, Mon Sep 22 19:08:38 2003 UTC revision 1.11 by amoyav, Sun Sep 28 12:06:03 2003 UTC
# Line 63  class FechaHoraMine(object): Line 63  class FechaHoraMine(object):
63      # Los siguientes valores representan la correspondencia Tiempo Real - Tiempo Minė.      # Los siguientes valores representan la correspondencia Tiempo Real - Tiempo Minė.
64      # Pueden ser modificados libremente.      # Pueden ser modificados libremente.
65    
66      FECHA_R_ANNO    = 2500     # Fecha R = 1 del 1 del 2500 T.E., a las 0:000h      FECHA_R_ANNO    = 1500     # Fecha R = 1 de Enero del 1500 T.E., a las 0:000h
67      FECHA_R_MES     = 1      FECHA_R_MES     = 1
68      FECHA_R_DIA     = 1      FECHA_R_DIA     = 1
69      FECHA_R_HORA    = 0      FECHA_R_HORA    = 0
# Line 132  class FechaHoraMine(object): Line 132  class FechaHoraMine(object):
132    
133      def __str__(self):      def __str__(self):
134          """Devuelve un string con la fecha en formato imprimible."""          """Devuelve un string con la fecha en formato imprimible."""
135          return "%d de %s de %d T.E. %02dh:%03ds" % (self.dia(),          return "%d de %s de %d T.E., %02dh" % (self.dia(),
136                                                      self.nombre_mes(),                                                 self.nombre_mes(),
137                                                      self.anno(),                                                 self.anno(),
138                                                      self.hora(),                                                 self.hora())
                                                     self.segundo())  
139    
140      def anno(self):      def anno(self):
141          return self.__anno          return self.__anno

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26