def __init__( self, val, val2=None, format=None, scale=None, precision=None, in_subfmt=None, out_subfmt=None, location=None, copy=False, ): # Extend formats list to include TimeLV (LabVIEW format) self.FORMATS[u"lv"] = TimeLV astroTime.__init__( self, val, val2, format=format, scale=scale, precision=precision, in_subfmt=in_subfmt, out_subfmt=out_subfmt, location=location, copy=copy, )
def __init__(self, val, val2=None, format=None, scale=None, precision=None, in_subfmt=None, out_subfmt=None, location=None, copy=False): # Extend formats list to include TimeLV (LabVIEW format) self.FORMATS[u'lv'] = TimeLV astroTime.__init__(self, val, val2, format=format, scale=scale, precision=precision, in_subfmt=in_subfmt, out_subfmt=out_subfmt, location=location, copy=copy)
def __init__(self, val, val2=None, format=None, scale=None, precision=None, in_subfmt=None, out_subfmt=None, location=None, copy=False): # Extend formats list to include TimeLV (LabVIEW format) self.FORMATS[u'lv'] = TimeLV astroTime.__init__(self, val, val2, format=format, scale=scale, precision=precision, in_subfmt=in_subfmt, out_subfmt=out_subfmt, location=location, copy=copy) import pytz try: self.LocalTime = pytz.utc.localize(self.datetime, is_dst=None).astimezone(pytz.timezone('America/Los_Angeles')) except: try: locT = [] for ll in self: locT.append(pytz.utc.localize(ll.datetime, is_dst=None).astimezone(pytz.timezone('America/Los_Angeles'))) self.LocalTime = locT except: pass
def __init__(self, val, val2=None, format=None, scale=None, precision=None, in_subfmt=None, out_subfmt=None, location=None, copy=False): # Extend formats list to include TimeLV (LabVIEW format) self.FORMATS[u'lv'] = TimeLV astroTime.__init__(self, val, val2, format=format, scale=scale, precision=precision, in_subfmt=in_subfmt, out_subfmt=out_subfmt, location=location, copy=copy) import pytz try: self.LocalTime = pytz.utc.localize( self.datetime, is_dst=None).astimezone(pytz.timezone('America/Los_Angeles')) except: try: locT = [] for ll in self: locT.append( pytz.utc.localize(ll.datetime, is_dst=None).astimezone( pytz.timezone('America/Los_Angeles'))) self.LocalTime = locT except: pass
def __init__(self, t, format='mjds'): if format == 'mjds': Time.__init__(self, t / 24. / 3600., format='mjd') else: Time.__init__(self, t, format=format)
def __init__(self,t,format='mjds'): if format=='mjds': Time.__init__(self,t/24./3600.,format='mjd') else: Time.__init__(self,t,format=format)
def __init__(self,t,format='mjds'): if format=='mjds': Time.__init__(self,t/24./3600.,format='mjd',scale='utc') else: Time.__init__(self,t,format=format,scale='utc')