def __init__(self,node_or_datetime,delay_from=None,reason=None,utc=True):
if isinstance(node_or_datetime,libxml2.xmlNode):<EOL><INDENT>self.from_xml(node_or_datetime)<EOL><DEDENT>else:<EOL><INDENT>if utc:<EOL><INDENT>self.timestamp=node_or_datetime<EOL><DEDENT>else:<EOL><INDENT>self.timestamp=datetime_local_to_utc(node_or_datetime)<EOL><DEDENT>self.delay_from=JID(delay_from)<EOL>self.reason=unicode(reason)<EOL><DEDENT>
Initialize the Delay object.

:Parameters:
    - `node_or_datetime`: an XML node to parse or the timestamp.
    - `delay_from`: JID of the entity which adds the delay mark
      (when `node_or_datetime` is a timestamp).
    - `reason`: reason of the delay (when `node_or_datetime` is a
      timestamp).
    - `utc`: if `True` then the timestamp is assumed to be UTC,
      otherwise it is assumed to be local time.
:Types:
    - `node_or_datetime`: `libxml2.xmlNode` or `datetime.datetime`
    - `delay_from`: `pyxmpp.JID`
    - `reason`: `unicode`
    - `utc`: `bool`