ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaie_5.4.0.1/rzaiestrftime.htm

392 lines
20 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?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="topic" />
<meta name="DC.Title" content="Time formats for HTTP Server" />
<meta name="abstract" content="This topic provides information about time formats for server-side includes." />
<meta name="description" content="This topic provides information about time formats for server-side includes." />
<meta name="DC.Relation" scheme="URI" content="rzaiereference.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2002,2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2002,2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzaiestrftime" />
<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 for HTTP Server</title>
</head>
<body id="rzaiestrftime"><a name="rzaiestrftime"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Time formats for HTTP Server</h1>
<div><p>This topic provides information about time formats for server-side
includes.</p>
<div class="important"><span class="importanttitle">Important:</span> Information
for this topic supports the latest PTF levels for HTTP Server for i5/OS .
It is recommended that you install the latest PTFs to upgrade to the latest
level of the HTTP Server for i5/OS. Some of the topics documented here are
not available prior to this update. See <a href="http://www-03.ibm.com/servers/eserver/iseries/software/http/services/service.html" target="_blank">http://www.ibm.com/servers/eserver/iseries/software/http/services/service.htm</a> <img src="www.gif" alt="Link outside Information Center" /> for more information. </div>
<p>The following table contains formatting values used to specify time with
server-side includes. See <a href="rzaielogformat.htm">Log formats for HTTP Server (powered by Apache)</a> and <a href="rzaiessicommands.htm">Server-side include commands for HTTP Server</a> for proper use of the server-side
include time format. </p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><thead align="left"><tr><th valign="top" width="22.807017543859647%" id="d0e37">Value</th>
<th valign="top" width="65.26315789473685%" id="d0e39">Description</th>
<th valign="top" width="11.929824561403509%" id="d0e41">Example</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%%</samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with %.</p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>%</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%a</samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the abbreviated weekday name.</p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>Mon</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%A</samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the full weekday name.</p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>Monday</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%b</samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the abbreviated month name.</p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>Apr</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%B</samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the full month name.</p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>April</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%c</samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the date and time.</p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%C</samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the century number (year divided by
100 and truncated).</p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%d</samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the day of the month (01-31).</p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>20</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%D</samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Insert the date as %m/%d/%y.</p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>04/20/00</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%e</samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Insert the month of the year as a decimal number
(01-12)</p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>03</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%E[cCzyY]</samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>If the alternative date and time format is not available,
the %E descriptions are mapped to their unextended counterparts. For example
%E is mapped to %C. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%Ec </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the alternative data and time representation. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%EC </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the name of the base year in the alternative
representation. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%Ex </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the alternative data representation. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%EX </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the alternative time representation. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%Ey </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the offset from %EC (year only) in the
alternative representation. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%EY </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the full alternative year representation. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%h </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the abbreviated month name. This is
the same as %b. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>Apr</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%H </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the hour (23-hour clock) as a decimal
number (00-23). </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>22</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%I </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the hour (12-hour clock) as a decimal
number(00-12). </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>04</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%j </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the day of the year (001-366). </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>222</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%m </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the month (01-12).</p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>04</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%M </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the minute (00-59).</p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>24</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%n </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with a new line. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%O[deHlmMSUwWy] </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>If the alternative date and time format is not available
the %E descriptors are mapped to their extended counterparts. For example
%Od is mapped to %d. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%Od </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the day of the month using the alternative
numeric symbols. Fill as needed with leading zeros if there is any alternative
symbol for zero otherwise with leading spaces. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%Oe </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the day of the month using the alternative
numeric symbols filled as needed with leading spaces. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%OH </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the hour (24 hour clock) using the alternative
numeric symbols. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%OI </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the hour (12 hour clock) using the alternative
numeric symbols. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%Om </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the month using the alternative numeric
symbols. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%OM </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the minutes using the alternative numeric
symbols. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%OS </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the seconds using the alternative numeric
symbols. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%OU </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the week number of the year (Sunday
as the first day of the week, rules corresponding to %U) using alternative
numeric symbols. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%Ow </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the weekday (Sunday=0) using the alternative
numeric symbols. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%OW </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the week number of the year (Monday
as the first day of the week) using the alternative numeric symbols. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%Oy </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the year (offset from %C) in the alternative
representation and using the alternative numeric symbols. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%p </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the local equivalent of AM or PM. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%r </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the string equivalent to <tt>%I:%M:%S
%p</tt>.</p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%R </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the time in 24 hour notation (%H:%M). </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%S</samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with seconds (00-61). </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%t </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with a tab. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%T </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with a string equivalent to %H:%M:%S. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>16:31:04</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%u </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with a weekday as a decimal number (1 to
7) with a 1 representing Monday. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>3</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%U </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the week number of the year (00-53)
where Sunday is the first day of the week. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>24</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%V </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the week number of the year (01-53)
where Monday is the first day of the week. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>5</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%w </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the weekday (0-6) where Sunday is 0. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>0</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%W </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the week number of the year (00-53)
where Monday is the first day of the week. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>13</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%x </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the appropriate date representation. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%X </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the appropriate time representation. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p></p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%y </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the year with the century. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>02</p>
</td>
</tr>
<tr><td valign="top" width="22.807017543859647%" headers="d0e37 "><samp class="codeph">%Y </samp></td>
<td valign="top" width="65.26315789473685%" headers="d0e39 "><p>Replace with the year with the current century. </p>
</td>
<td valign="top" width="11.929824561403509%" headers="d0e41 "><p>2002</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaiereference.htm" title="This topic provides additional reference documentation for HTTP Server and the IBM Web Administration for i5/OS interface.">Reference documentation for HTTP Server</a></div>
</div>
</div>
</body>
</html>