<abstract>This specification provides historical documentation of the legacy jabber:x:delay namespace, which has been deprecated in favor the urn:xmpp:delay namespace defined in XEP-0203.</abstract>
<remark><p>Specified that the timezone is to be understood as UTC; specified security considerations; corrected several small textual errors.</p></remark>
<pclass='note'>Note: This specification has been deprecated in favor of &xep0203;.</p>
<p>This document provides canonical documentation of the 'jabber:x:delay' namespace, which was long used by Jabber applications to mark message or presence stanzas as delivered with a delay. This document is of historical importance only, since it has been deprecated in favor of <cite>XEP-0203</cite>.</p>
<p>The 'jabber:x:delay' namespace is used to provide timestamp information about data stored for later delivery. The most common uses of this namespace are to stamp:</p>
<ul>
<li>A message that is sent to an offline entity and stored for later delivery.</li>
<li>The last presence update sent by a connected node to a host.</li>
<li>Messages cached by a multi-user chat room for delivery to new participants when they join the room.</li>
</ul>
<p>Information about the delivery delay is communicated by adding to the <message/> or <presence/> stanza one and only one <x/> child qualified by the 'jabber:x:delay' namespace. This information is added by the server or component that delivers the information. The following attributes are allowed on the <x/> element:</p>
<ul>
<li><cite>from</cite> -- The Jabber ID of the entity that originally sent the XML stanza or that delayed the delivery of the stanza (for example, the address of a multi-user chat room). This attribute is RECOMMENDED.</li>
<li><cite>stamp</cite> -- The time when the XML stanza was originally sent. The format SHOULD be "CCYYMMDDThh:mm:ss" (see <linkurl="#time">A Note on Time Formats</link> below). This attribute is REQUIRED.</li>
</ul>
<p>In addition, the <x/> element MAY contain XML character data that provides a natural-language description of the reason for the delay.</p>
</section1>
<section1topic='Examples'anchor='examples'>
<examplecaption='Receiving a Message Sent While Offline'><![CDATA[
<message
from='romeo@montague.net/orchard'
to='juliet@capulet.com'
type='chat'>
<body>
O blessed, blessed night! I am afeard.
Being in night, all this is but a dream,
Too flattering-sweet to be substantial.
</body>
<xxmlns='jabber:x:delay'
from='capulet.com'
stamp='20020910T23:08:25'>
Offline Storage
</x>
</message>
]]></example>
<examplecaption='Receiving the Last Presence Update of Another Entity'><![CDATA[
<p>&xep0082; defines the lexical representation of dates, times, and datetimes in Jabber protocols. Unfortunately, the 'jabber:x:delay' namespace predates that definition, and uses a datetime format ("CCYYMMDDThh:mm:ss") that is inconsistent with XEP-0082 and &w3xmlschema2;. Because a large base of deployed software uses the old format, this document specifies that applications using 'jabber:x:delay' SHOULD use the old format, not the format defined in XEP-0082. The timezone is be understood as UTC.</p>
<p>Data qualified by the 'jabber:x:delay' can expose information about the sender's presence on the network at some time in the past. However, this introduces no new vulnerabilities, since the same information would have been available in real time.</p>