Package glue :: Package ligolw :: Module ligolw :: Class Time
[hide private]
[frames] | no frames]

Class Time

source code

object --+    
         |    
   Element --+
             |
            Time

Time element.

Instance Methods [hide private]
 
__init__(self, *args)
Construct an element.
source code
 
endElement(self)
Method invoked by document parser when it encounters the end-of-element event.
source code
 
write(self, fileobj=<epydoc.docintrospecter._DevNull instance at 0x7f39154699e0>, indent=u'')
Recursively write an element and it's children to a file.
source code

Inherited from Element: appendChild, appendData, end_tag, getAttribute, getChildrenByAttributes, getElements, getElementsByTagName, hasAttribute, insertBefore, removeAttribute, removeChild, replaceChild, setAttribute, start_tag, unlink

Inherited from Element (private): _verifyChildren

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
from_gps(cls, gps, Name=None)
Instantiate a Time element initialized to the value of the given GPS time.
source code
 
now(cls, Name=None)
Instantiate a Time element initialized to the current UTC time in the default format (ISO-8601).
source code

Inherited from Element: validattributes

Class Variables [hide private]
  tagName = u'Time'
hash(x)

Inherited from Element: validchildren

Properties [hide private]
  Name
The "Name" attribute.
  Type
The "Type" attribute.

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args)
(Constructor)

source code 

Construct an element. The argument is a sax.xmlreader.AttributesImpl object (see the xml.sax documentation, but it's basically a dictionary-like thing) used to set the element attributes.

Overrides: object.__init__
(inherited documentation)

endElement(self)

source code 

Method invoked by document parser when it encounters the end-of-element event.

Overrides: Element.endElement
(inherited documentation)

from_gps(cls, gps, Name=None)
Class Method

source code 

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.

now(cls, Name=None)
Class Method

source code 

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(self, fileobj=<epydoc.docintrospecter._DevNull instance at 0x7f39154699e0>, indent=u'')

source code 

Recursively write an element and it's children to a file.

Overrides: Element.write
(inherited documentation)

Property Details [hide private]

Name

The "Name" attribute.

Get Method:
unreachable.getter(self)
Set Method:
unreachable.setter(self, value)
Delete Method:
unreachable.deleter(self)

Type

The "Type" attribute. Default is "ISO-8601" if not set.

Get Method:
unreachable.getter(self)
Set Method:
unreachable.setter(self, value)
Delete Method:
unreachable.deleter(self)