Exemplo n.º 1
0
 def __init__(self, min=None, max=None, default=None, timezone=0, **kwargs):
     timezone_str = dhms_to_str(*seconds_to_dhms(timezone))
     AttrType.__init__(self, 'ATTime(%s)' % timezone_str, **kwargs)
     self.min, self.max = min, max
     self._timezone = timezone
     if default is not None:
         self._default = default
Exemplo n.º 2
0
 def __init__(self, min=None, max=None, default=None, timezone=0, **kwargs):
     timezone_str = dhms_to_str(*seconds_to_dhms(timezone))
     AttrType.__init__(self, 'ATTime(%s)' % timezone_str, **kwargs)
     self.min, self.max = min, max
     self._timezone = timezone
     if default is not None:
         self._default = default
Exemplo n.º 3
0
 def str(self, val, project):
     return dhms_to_str(*seconds_to_dhms(val))
Exemplo n.º 4
0
 def str(self, val, project):
     return dhms_to_str(*seconds_to_dhms(val))