Datetime Attribute Type


 

The Datetime Attribute Type is a data type defined by XHTML Modularisation 1.1, declared in the DTD as XML 1.0 type CDATA.
Reference: *W3C - XHTML Modularisation 1.1 - Attribute Types

Specific Attributes with Type Datetime

  1. datetime:
    This is declared on the elements: ins, del

Common Attributes with Type Datetime

There are no Common Attributes with type Datetime.


Attribute Value for Type Datetime

Date and Time in the W3C profile of the ISO 8601 date format (YYYY-MM-DDThh:mm:ssTZD), e.g. "2006-01-31T13:52:10-05:00", "2006-05-28T21:01:26Z"

In the ISO 8601 date format (YYYY-MM-DDThh:mm:ssTZD), TZD is a time zone designator, with Z indicating UTC, +hh:mm indicating a zone hh:mm ahead of UTC and -hh:mm a time zone hh:mm behind UTC. (UTC is almost identical to GMT, and for the purposes of the web the two can almost invariably be considered equivalent.)

If less precision is required, the following formats are also valid:

  • YYYY
  • YYYY-MM
  • YYYY-MM-DD
  • YYYY-MM-DDThh:mmTZD

Less commonly, a more precise form (including a decimal fraction of a second) may be used: YYYY-MM-DDThh:mm:ss.sTZD

See *the W3C note on datetime formats for more information. Common TZD values are listed in the table below.

Time ZoneTZD
Greenwich Mean Time, GMTZ
British Summer Time, BST+01:00
Newfoundland Standard Time, NST-03:30
Newfoundland Daylight Time, NDT-02:30
Atlantic Standard Time, AST-04:00
Atlantic Daylight Time, ADT-03:00
Eastern Standard Time, EST-05:00
Eastern Daylight Time, EDT-04:00
Central Standard Time, CST-06:00
Central Daylight Time, CDT-05:00
Mountain Standard Time, MST-07:00
Mountain Daylight Time, MDT-06:00
Pacific Standard Time, PST-08:00
Pacific Daylight Time, PDT-07:00
Alaskan Standard Time, AKST-09:00
Alaskan Daylight Time, AKDT-08:00
Hawaiian Standard Time, HST-10:00

There is an excellent *World Time Zones web site for current information about all worldwide time zones.


Page Footer & Copyright

Copyright © Sally Maughan 2005-2009 (Page last updated on 01 Oct 2009)

*Valid XHTML 1.1 - hosted by *Openstrike

Content based on the W3C Working Draft: *XHTML 1.1 and Recommendation: *XHTML Modularisation 1.1.

W3C, XHTML, XML, HTML, CSS and MathML are *Trademarks of the W3C (*MIT, *ERCIM, *Keio) with which the site's author has no connection.


Up, Next & Previous Links

Your Location

Home > XHTML 1.1 Home > Data Types in XHTML 1.1 > Attribute Types (XHTML 1.1) > Datetime Attribute Type