Time¶
- class igwn_ligolw.ligolw.Time(*args)¶
Bases:
ElementTime element.
Attributes Summary
Methods Summary
Method invoked by document parser when it encounters the end-of-element event.
from_gps(gps[, Name])Instantiate a Time element initialized to the value of the given GPS time.
now([Name])Instantiate a Time element initialized to the current UTC time in the default format (ISO-8601).
write([fileobj, indent])Recursively write an element and it's children to a file.
Attributes Documentation
- Name¶
The “Name” attribute.
- Type¶
The “Type” attribute. Default is “ISO-8601” if not set.
- tagName = 'Time'¶
Methods Documentation
- endElement()¶
Method invoked by document parser when it encounters the end-of-element event.
- classmethod from_gps(gps, Name=None)¶
Instantiate a Time element initialized to the value of the given GPS time. The Name attribute will be set to the value of the Name parameter if given.
Note: the new Time element holds a reference to the GPS time, not a copy of it. Subsequent modification of the GPS time object will be reflected in what gets written to disk.
- classmethod now(Name=None)¶
Instantiate a Time element initialized to the current UTC time in the default format (ISO-8601). The Name attribute will be set to the value of the Name parameter if given.
- write(fileobj=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, indent='')¶
Recursively write an element and it’s children to a file.