TimeFieldInfo¶
-
class
lsst.ts.MTMount.field_info.TimeFieldInfo(name, doc, scale, default=None)¶ Bases:
lsst.ts.MTMount.field_info.BaseFieldInfoDate and time field.
The str representation is ISO-8601, with “T” between the date and time. For example: “2020-02-27T14:48:27.469”.
Parameters: - name :
str Name of field. Must be a valid Python identifier.
- doc :
str(optional) Description of the field.
- scale :
str One of “tai” or “utc”. Support for other values supported by
astropy.timecan easily be added, if needed. But Tekniker’s code only uses UTC and TAI.- default :
TrueorNone If
Truethen the current date is used as a default. IfNonethen the date must be specified.
Attributes Summary
defaultMethods Summary
assert_value_ok(value)str_from_value(value)Return a string representation of the value. value_from_str(strval)Convert a string to a value of the correct type. Attributes Documentation
-
default¶
Methods Documentation
-
assert_value_ok(value)¶
-
str_from_value(value)¶ Return a string representation of the value.
- name :