61 lines
3.3 KiB
HTML
61 lines
3.3 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="concept" />
|
|
<meta name="DC.Title" content="Time formats" />
|
|
<meta name="abstract" content="The operating system supports several time formats." />
|
|
<meta name="description" content="The operating system supports several time formats." />
|
|
<meta name="DC.Relation" scheme="URI" content="rbagscultconvappdesign.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rbagstimeformats" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>Time formats</title>
|
|
</head>
|
|
<body id="rbagstimeformats"><a name="rbagstimeformats"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Time formats</h1>
|
|
<div><p>The operating system supports several time formats.</p>
|
|
<ul><li>*HMS (hh:mm:ss)</li>
|
|
<li>*ISO (hh.mm.ss)</li>
|
|
<li>*USA (hh:mm AM or hh:mm PM)</li>
|
|
<li>*EUR (hh.mm.ss)</li>
|
|
<li>*JIS (hh:mm:ss)</li>
|
|
</ul>
|
|
<p>The system value QTIME has one format (hhmmss). The time separator value
|
|
is determined by the QTIMSEP system value.</p>
|
|
<p>The time format for presentation should always be stored externally as
|
|
part of the textual data.</p>
|
|
<p>In database files, times can be stored as:</p>
|
|
<ul><li>Normal numeric data fields</li>
|
|
<li>SAA<sup>®</sup> time
|
|
data-types</li>
|
|
</ul>
|
|
<p>When you store the time as numeric data, your application needs to specify
|
|
the format in which it is stored and presented.</p>
|
|
<p>When you store the time as data type TIME (T), you can specify the format
|
|
with the DDS keyword TIMFMT on the database file. The time is sorted in this
|
|
predefined format as character data, including the time separators. To convert
|
|
time fields from one format to another, write a CL program or high-level language
|
|
routine to do the conversion.</p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbagscultconvappdesign.htm" title="Different countries have different standards that must be taken into account when developing an NLS-enabled application. This culturally sensitive information must be placed outside the program the same way as the textual data is handled.">Cultural-dependent design</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |