280 lines
7.4 KiB
HTML
280 lines
7.4 KiB
HTML
<!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 Seconds to Integers (CEESECI) 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 Seconds to Integers (CEESECI) API</h2>
|
|
|
|
<div class="box" style="width: 70%;">
|
|
<br>
|
|
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="30%">input_seconds</td>
|
|
<td align="left" valign="top" width="30%">Input</td>
|
|
<td align="left" valign="top" width="30%">FLOAT8</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">2</td>
|
|
<td align="left" valign="top">output_year</td>
|
|
<td align="left" valign="top">Output</td>
|
|
<td align="left" valign="top">INT4</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">3</td>
|
|
<td align="left" valign="top">output_month</td>
|
|
<td align="left" valign="top">Output</td>
|
|
<td align="left" valign="top">INT4</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">4</td>
|
|
<td align="left" valign="top">output_day</td>
|
|
<td align="left" valign="top">Output</td>
|
|
<td align="left" valign="top">INT4</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">5</td>
|
|
<td align="left" valign="top">output_hours</td>
|
|
<td align="left" valign="top">Output</td>
|
|
<td align="left" valign="top">INT4</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">6</td>
|
|
<td align="left" valign="top">output_minutes</td>
|
|
<td align="left" valign="top">Output</td>
|
|
<td align="left" valign="top">INT4</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">7</td>
|
|
<td align="left" valign="top">output_seconds</td>
|
|
<td align="left" valign="top">Output</td>
|
|
<td align="left" valign="top">INT4</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">8</td>
|
|
<td align="left" valign="top">output_milliseconds</td>
|
|
<td align="left" valign="top">Output</td>
|
|
<td align="left" valign="top">INT4</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<br>
|
|
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="30%">fc</td>
|
|
<td align="left" valign="top" width="30%">Output</td>
|
|
<td align="left" valign="top" width="30%">FEEDBACK</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<br>
|
|
Service Program Name: QLEAWI<br>
|
|
<!-- iddvc RMBR -->
|
|
<br>
|
|
Default Public Authority: *USE<br>
|
|
<!-- iddvc RMBR -->
|
|
<br>
|
|
Threadsafe: Yes<br>
|
|
<!-- iddvc RMBR -->
|
|
<br>
|
|
</div>
|
|
|
|
<p>The Convert Seconds to Integers (CEESECI) API converts a number representing
|
|
the number of seconds since 00:00:00 14 October 1582 to seven separate binary
|
|
integers representing year, month, day, hour, minute, second, and millisecond.
|
|
Use CEESECI instead of CEEDATM when the output is needed in numeric format
|
|
rather than in 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_seconds (input)</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 valid range is 86 400 to
|
|
265 621 679 999.999 (23:59:59.999 31 December 9999).
|
|
|
|
<p>If <em>input_seconds</em> is not valid, all output parameters are set to
|
|
zero.</p>
|
|
</dd>
|
|
|
|
<dt><strong>output_year (output)</strong></dt>
|
|
|
|
<dd>A 32-bit binary integer representing year. The range is 1582 through
|
|
9999.<br>
|
|
<br>
|
|
</dd>
|
|
|
|
<dt><strong>output_month (output)</strong></dt>
|
|
|
|
<dd>A 32-bit binary integer representing month. The range is 1 through 12.<br>
|
|
<br>
|
|
</dd>
|
|
|
|
<dt><strong>output_day (output)</strong></dt>
|
|
|
|
<dd>A 32-bit binary integer representing day. The range is 1 through 31.<br>
|
|
<br>
|
|
</dd>
|
|
|
|
<dt><strong>output_hours (output)</strong></dt>
|
|
|
|
<dd>A 32-bit binary integer representing hours. The range is 0 through 23.<br>
|
|
<br>
|
|
</dd>
|
|
|
|
<dt><strong>output_minutes (output)</strong></dt>
|
|
|
|
<dd>A 32-bit binary integer representing minutes. The range is 0 through
|
|
59.<br>
|
|
<br>
|
|
</dd>
|
|
|
|
<dt><strong>output_seconds (output)</strong></dt>
|
|
|
|
<dd>A 32-bit binary integer representing seconds. The range is 0 through
|
|
59.<br>
|
|
<br>
|
|
</dd>
|
|
|
|
<dt><strong>output_milliseconds (output)</strong></dt>
|
|
|
|
<dd>A 32-bit binary integer representing milliseconds. The range is 0 through
|
|
999.</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"> </td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="left" valign="top">CEE2505</td>
|
|
<td align="left" valign="top">The value for seconds is out of range</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="left" valign="top">Severity: 30</td>
|
|
<td align="left" valign="top"> </td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="left" valign="top">CEE9902</td>
|
|
<td align="left" valign="top">Unexpected user error occurred in &1</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="left" valign="top">Severity: 30</td>
|
|
<td align="left" valign="top"> </td>
|
|
</tr>
|
|
</table>
|
|
|
|
<br>
|
|
<h3>Usage Notes</h3>
|
|
|
|
<ul>
|
|
<li>
|
|
<p>The inverse of CEESECI is CEEISEC. The CEEISEC API converts integer year,
|
|
month, day, hour, minute, second, and millisecond to number of seconds.</p>
|
|
</li>
|
|
|
|
<li>
|
|
<p>If the input value is a Lilian date instead of seconds, multiply the Lilian
|
|
date by 86 400 (number of seconds in a day), and pass the new value to
|
|
CEESECI.</p>
|
|
</li>
|
|
|
|
<li>
|
|
<p>CEESECI can be used to do date arithmetic that cannot otherwise be done with
|
|
Lilian dates or number of seconds.</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>
|
|
|