<?php 
// authors should fill in these assignments:
$directory = ''; // the directory path below /International up to but not including the file name: must end in a slash! 
$filename = 'O-time'; // the file name WITHOUT extensions
$authors = 'Martin J. Dürst, W3C'; // author(s) and affiliations
$modifiers = ''; // people making substantive changes, and their affiliation
$searchString = 'article-o-time'; // blog search string - usually the filename without extensions
$firstPubDate = 'unknown'; // date of the first publication of the document (after review)
$lastSubstUpdate = '2004-04-20 13:58';  // date of last substantive changes to this document
$pathtophp = 'php'; // authors should check that the following points to /International/php - must be relative path

// authors AND translators should fill in these assignments:
$clang = 'en'; // the language extension for articles in this language (use 'en' for English)
$isTranslation = 'no';  // set to 'yes' if this is a translation !
$copyrightYear = '2006'; // this year, but may also be a range, eg. 2002-2006
$thisVersion = '2010-08-19  18:32'; // date of latest edits to this document/translation

// translators should fill in these assignments:
$translators = 'xxxNAME, ORG'; // translator(s) and their affiliation - a elements allowed, but use double quotes for attributes
$enVersion = 'xxxYYYY-MM-DD';  // date of the English original on which the translation is based (see last substantive change date at bottom of file)

include($pathtophp.'/bp3/boilerplate-'.$clang.'.php');

if (! isset($s_articles)) { $s_articles = "Articles"; }
$breadcrumbs = <<<eot
<a href='/International/'>$s_home </a> &gt; <a href='/International/resources'>$s_resources</a> &gt; <a href='/International/articlelist#cultural'>$s_articles</a>
eot;

$toc = <<<eot
<ol>
<li><a href="#endlinks">$s_furtherReadingLink</a></li>
</ol>
eot;

$additionalLinks = <<<eot
eot;
include($pathtophp.'/bp3/structure.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html <?php echo "lang='$clang' xml:lang='$clang'";?> xmlns="http://www.w3.org/1999/xhtml">
<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>Dates and Time</title>
		<meta name="keywords" content="i18n internationalisation internationalization localisation localization translation time format date format" />
		<meta name="description"
		 content="World-wide interaction in real-time (or near real-time) requires unambiguous representations of times and dates. Here are some resources." />
<?php echo $headincludes;?>

<link rel="stylesheet" href="/International/style/article-standards-v2.css" type="text/css" />
</head>

	<body bgcolor="white">
		<span id="version-info" style="display: none;"><!-- #BeginDate format:IS1m -->2010-08-19  18:47<!-- #EndDate --></span> <?php echo $topOfPage; ?>

		<h1>Dates and Time</h1>
		<div class="section"><a id="contentstart" name="contentstart" tabindex="1"></a> 
			<div id="audience"> 
				<p><?php echo $intendedAudience?> users, XHTML/HTML coders (using editors or scripting), script developers (PHP, JSP, etc.), schema developers (DTDs, XML Schema, RelaxNG, etc.), XSLT developers, Web project managers.</p>
			<?php if ($outOfDateTranslation == 'yes') { echo "<p class='outofdate'>$s_untranslatedChanges </p>"; } ?>
			</div>
<!--<h2><?php echo $questionHead?></h2>-->
			<p>World-wide interaction in real-time (or near real-time) requires unambiguous representations of times and dates. Here are some
				resources:</p>
			<ul>
				<li><a href="../Protocols/Time/">How time is maintained on the Internet</a></li>
				<li><a href="/TR/NOTE-datetime">A proposal for unambiguous, machine-readable dates &amp; times</a></li>
			</ul>
			<p>Dates and time in Web pages:</p>
			<ul>
				<li>Ambiguous dates cause confusion: 
					<ul>
						<li><strong>02/03/04</strong>: This may be March 4th, 2002 (in Japan,...), 2nd of March, 2004 (in Europe) and February 3rd, 2004
							(in the USA). It depends on whom you ask, not whether they speak English or not.</li>
					</ul>
				</li>
				<li>Use unambiguous dates on your web pages: 
					<ul>
						<li>Always use a four-digit number for the year (this clearly distinguishes the year from the day of the month)</li>
						<li>Always use words (abbreviated if necessary) for the months</li>
						<li>For forms, use structured dates and popup menus</li>
					</ul>
				</li>
				<li>There were some proposals to add a &lt;date&gt; and/or &lt;time&gt; element to HTML, so that browsers could localize display, but
					they never materialized.</li>
				<li>Date and time datatypes are available in <a href="http://www.w3.org/TR/xmlschema-2/#dateTime">XML Schema Part 2: Datatypes</a>. 
					<ul>
						<li>The formats defined are for data interchange, not for display.</li>
						<li>To interchange a date as it appears in an actual document, define markup such as <code>&lt;date
							value="2001-05-02"&gt;</code>The second of May, 2001<code>&lt;/date&gt;</code>.</li>
						<li>For time periods, use a start date and an end date. Other forms may not be translatable into different calendars.</li>
					</ul>
				</li>
			</ul>
			<p>And some handy little tools:</p>
			<ul>
				<li><a href="O-time-tzcomputer.html">A time zone computer (Java applet)</a></li>
				<li><a href="O-time-clocks.html">Time zone sensitive clocks (Java applet)</a></li>
			</ul>
		</div>
<?php echo $survey;?>
		<div class="section noprint"> 

			<h2><?php echo $readingHead?></h2>
			<ul id="full-links">
				<li> 
					<p><a href="/Protocols/Time/">How time is maintained on the Internet</a> <span
						class="uri">http://www.w3.org/Protocols/Time/</span></p>
				</li>
				<li> 
					<p><a href="/TR/NOTE-datetime">A proposal for unambiguous, machine-readable dates &amp; times</a> <span
						class="uri">http://www.w3.org/TR/NOTE-datetime</span></p>
				</li>
				<li> 
					<p><a href="O-time-tzcomputer.html">A time zone computer (Java applet)</a> <span
						class="uri">http://www.w3.org/International/O-time-tzcomputer.html</span></p>
				</li>
				<li> 
					<p><a href="O-time-clocks.html">Time zone sensitive clocks (Java applet)</a> <span
						class="uri">http://www.w3.org/International/O-time-clocks.html</span></p>
				</li>
				<li> 
					<p><a href="/TR/xmlschema-2/#dateTime">XML Schema Part 2: Datatypes</a> <span
						class="uri">http://www.w3.org/TR/xmlschema-2/#dateTime</span></p>
				</li>
			</ul>
		</div>
<?php echo $bottomOfPage; ?>

	</body>
</html>

