ibm-information-center/dist/eclipse/plugins/i5OS.ic.apis_5.4.0.1/CEEISEC.htm

352 lines
9.0 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Copyright" content="Copyright (c) 2006 by IBM Corporation">
<title>Convert Integers to Seconds (CEEISEC) API</title>
<!-- Begin Header Records ========================================== -->
<!-- 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. -->
<!-- Change History: -->
<!-- YYMMDD USERID Change description -->
<!-- ILE4A SCRIPT A converted by B2H R4.1 (346) (CMS) by NLJONES at -->
<!-- RCHVMX on 25 Feb 1999 at 10:53:17 -->
<!--Edited by Kersten Oct 2001 -->
<!-- End Header Records -->
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body>
<!-- Java sync-link -->
<script type="text/javascript" language="Javascript" src="../rzahg/synch.js">
</script>
<a name="Top_Of_Page"></a>
<h2>Convert Integers to Seconds (CEEISEC) API</h2>
<div class="box" style="width: 70%;">
<br>
&nbsp;&nbsp;Required Parameter Group:<br>
<!-- iddvc RMBR -->
<br>
<table width="100%">
<tr>
<td align="center" valign="top" width="10%">1</td>
<td align="left" valign="top" width="50%">input_year</td>
<td align="left" valign="top" width="20%">Input</td>
<td align="left" valign="top" width="20%">INT4</td>
</tr>
<tr>
<td align="center" valign="top">2</td>
<td align="left" valign="top">input_month</td>
<td align="left" valign="top">Input</td>
<td align="left" valign="top">INT4</td>
</tr>
<tr>
<td align="center" valign="top">3</td>
<td align="left" valign="top">input_day</td>
<td align="left" valign="top">Input</td>
<td align="left" valign="top">INT4</td>
</tr>
<tr>
<td align="center" valign="top">4</td>
<td align="left" valign="top">input_hours</td>
<td align="left" valign="top">Input</td>
<td align="left" valign="top">INT4</td>
</tr>
<tr>
<td align="center" valign="top">5</td>
<td align="left" valign="top">input_minutes</td>
<td align="left" valign="top">Input</td>
<td align="left" valign="top">INT4</td>
</tr>
<tr>
<td align="center" valign="top">6</td>
<td align="left" valign="top">input_seconds</td>
<td align="left" valign="top">Input</td>
<td align="left" valign="top">INT4</td>
</tr>
<tr>
<td align="center" valign="top">7</td>
<td align="left" valign="top">input_milliseconds</td>
<td align="left" valign="top">Input</td>
<td align="left" valign="top">INT4</td>
</tr>
<tr>
<td align="center" valign="top">8</td>
<td align="left" valign="top">output_seconds</td>
<td align="left" valign="top">Output</td>
<td align="left" valign="top">FLOAT8</td>
</tr>
</table>
<br>
&nbsp;&nbsp;Omissible Parameter:<br>
<!-- iddvc RMBR -->
<br>
<table width="100%">
<tr>
<td align="center" valign="top" width="10%">9</td>
<td align="left" valign="top" width="50%">fc</td>
<td align="left" valign="top" width="20%">Output</td>
<td align="left" valign="top" width="20%">FEEDBACK</td>
</tr>
</table>
<br>
&nbsp;&nbsp;Service Program Name: QLEAWI<br>
<!-- iddvc RMBR -->
<br>
&nbsp;&nbsp;Default Public Authority: *USE<br>
<!-- iddvc RMBR -->
<br>
&nbsp;&nbsp;Threadsafe: Yes<br>
<!-- iddvc RMBR -->
<br>
</div>
<p>The Convert Integers to Seconds (CEEISEC) API converts separate binary
integers representing year, month, day, hour, minute, second, and millisecond
to a number representing the number of seconds since 00:00:00 14 October 1582.
Use CEEISEC instead of CEESECS when the input is in numeric format rather than
character format.</p>
<!-- Please NOTE: DO NOT DELETE THIS SECTION if this API has no authorities and locks. -->
<!-- Instead, use the commented out coding below to indicate NONE. -->
<h3>Authorities and Locks</h3>
<!-- Use this if there are no authorities and locks. -->
<p>None.</p>
<br>
<h3>Required Parameter Group</h3>
<dl>
<dt><strong>input_year (input)</strong></dt>
<dd>A 32-bit binary integer representing year. The range is 1582 through
9999.<br>
<br>
</dd>
<dt><strong>input_month (input)</strong></dt>
<dd>A 32-bit binary integer representing month. The range is 1 through 12.<br>
<br>
</dd>
<dt><strong>input_day (input)</strong></dt>
<dd>A 32-bit binary integer representing day. The range is 1 through 31.<br>
<br>
</dd>
<dt><strong>input_hours (input)</strong></dt>
<dd>A 32-bit binary integer representing hours. The range is 0 through 23.<br>
<br>
</dd>
<dt><strong>input_minutes (input)</strong></dt>
<dd>A 32-bit binary integer representing minutes. The range is 0 through
59.<br>
<br>
</dd>
<dt><strong>input_seconds (input)</strong></dt>
<dd>A 32-bit binary integer representing seconds. The range is 0 through
59.<br>
<br>
</dd>
<dt><strong>input_milliseconds (input)</strong></dt>
<dd>A 32-bit binary integer representing milliseconds. The range is 0 through
999.<br>
<br>
</dd>
<dt><strong>output_seconds (output)</strong></dt>
<dd>A 64-bit double floating-point number representing the number of seconds
since 00:00:00 on 14 October 1582. For example, 00:00:01 on 15 October 1582 is
second number 86,401 (24*60*60 + 01). The range is 86,400 to
265&nbsp;621&nbsp;679&nbsp;999.999 (23:59:59.999 31 December 9999).
<p>If any input values are not valid, <em>output_seconds</em> is set to
zero.</p>
</dd>
</dl>
<br>
<h3>Omissible Parameter</h3>
<dl>
<dt><strong>fc (output)</strong></dt>
<dd>A 12-byte feedback code passed by reference. If specified as an argument,
feedback information (a condition token) is returned to the calling procedure.
If not specified and the requested operation was not successfully completed,
the condition is signaled to the condition manager.</dd>
</dl>
<br>
<h3>Feedback Codes and Conditions</h3>
<table cellpadding="3">
<!-- cols="15 85" -->
<tr>
<td align="left" valign="top">CEE0000</td>
<td align="left" valign="top">The API completed successfully</td>
</tr>
<tr>
<td align="left" valign="top">Severity: 00</td>
<td align="left" valign="top">&nbsp;</td>
</tr>
<tr>
<td align="left" valign="top">CEE2510</td>
<td align="left" valign="top">The value for hour is not valid</td>
</tr>
<tr>
<td align="left" valign="top">Severity: 30</td>
<td align="left" valign="top">&nbsp;</td>
</tr>
<tr>
<td align="left" valign="top">CEE2511</td>
<td align="left" valign="top">The value for day is not valid</td>
</tr>
<tr>
<td align="left" valign="top">Severity: 30</td>
<td align="left" valign="top">&nbsp;</td>
</tr>
<tr>
<td align="left" valign="top">CEE2513</td>
<td align="left" valign="top">The value for Lilian date is not valid</td>
</tr>
<tr>
<td align="left" valign="top">Severity: 30</td>
<td align="left" valign="top">&nbsp;</td>
</tr>
<tr>
<td align="left" valign="top">CEE2514</td>
<td align="left" valign="top">The value for Lilian year is not valid</td>
</tr>
<tr>
<td align="left" valign="top">Severity: 30</td>
<td align="left" valign="top">&nbsp;</td>
</tr>
<tr>
<td align="left" valign="top">CEE2515</td>
<td align="left" valign="top">The value for millisecond is not valid</td>
</tr>
<tr>
<td align="left" valign="top">Severity: 30</td>
<td align="left" valign="top">&nbsp;</td>
</tr>
<tr>
<td align="left" valign="top">CEE2516</td>
<td align="left" valign="top">The minute value is not valid</td>
</tr>
<tr>
<td align="left" valign="top">Severity: 30</td>
<td align="left" valign="top">&nbsp;</td>
</tr>
<tr>
<td align="left" valign="top">CEE2517</td>
<td align="left" valign="top">The value for month is not valid</td>
</tr>
<tr>
<td align="left" valign="top">Severity: 30</td>
<td align="left" valign="top">&nbsp;</td>
</tr>
<tr>
<td align="left" valign="top">CEE2519</td>
<td align="left" valign="top">The value for second is not valid</td>
</tr>
<tr>
<td align="left" valign="top">Severity: 30</td>
<td align="left" valign="top">&nbsp;</td>
</tr>
<tr>
<td align="left" valign="top">CEE9902</td>
<td align="left" valign="top">Unexpected user error occurred in &amp;1</td>
</tr>
<tr>
<td align="left" valign="top">Severity: 30</td>
<td align="left" valign="top">&nbsp;</td>
</tr>
</table>
<br>
<h3>Usage Notes</h3>
<ul>
<li>
<p>The inverse of CEEISEC is CEESECI. The CEESECI API converts number of
seconds to integer year, month, day, and so forth.</p>
</li>
<li>
<p>To convert <em>output_seconds</em> to a Lilian day number, divide <em>
output_seconds</em> by 86&nbsp;400 (number of seconds in a day).</p>
</li>
<li>
<p>CEEISEC can be used to do date arithmetic that cannot otherwise be done with
Lilian dates or number of seconds. For example, to add exactly 6 months to a
date rather than add 180 days, use CEEISEC.</p>
</li>
</ul>
<br>
<hr>
API introduced: V2R3
<hr>
<center>
<table cellpadding="2" cellspacing="2">
<tr align="center">
<td valign="middle" align="center"><a href="#Top_Of_Page">Top</a> | <a href=
"ile1a1.htm">ILE CEE APIs</a> | <a href="aplist.htm">APIs by category</a></td>
</tr>
</table>
</center>
</body>
</html>