/usr/share/doc/rmagic/html/datefmts.html is in rmagic 2.21-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<?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 xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso8859-1" />
<meta name="AUTHOR" content="This page created by Wadsack-Allen Digital Goup" />
<title>Report Magic for Analog Documentation - Date Format Specification</title>
<style type="text/css">
<!--
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:11pt;
}
p {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:11pt;
}
a {
text-decoration:normal;
}
h1 {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size:24pt;
font-weight:bold;
}
h2 {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size:18pt;
font-weight:bold;
}
h3 {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size:16pt;
font-weight:bold;
}
h4 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:14pt;
font-weight:bold
}
dl {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:10pt;
}
ul {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:10pt;
}
ol {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:10pt;
}
.fineprint {
font-family:Arial, Helvetica;
font-size:8pt;
}
.fineprint a {
color:#000099;
font-weight:bold;
}
code {
font-family: "Courier New", Courier, Monospaced, System;
}
pre {
font-family: "Courier New", Courier, Monospaced, System;
}
.note {
background-color: #f50000;
margin-right: 2em;
margin-left: 2em;
padding-right: 2px;
padding-left: 2px;
border: solid 1px #c50000;
}
.term {
background-color: #f5f5f5;
margin-right: 2em;
margin-left: 2em;
padding-right: 2px;
padding-left: 2px;
border: solid 1px silver;
font-family: monospace,courier,fixedsys;
font-size: 8pt;
}
-->
</style>
</head>
<body bgcolor="#ffffff" text="#000000" link="#000099" vlink="#cc3399" alink="#003399">
<table border="0" cellspacing="0" cellpadding="0" summary="Layout table">
<tr>
<td align="center"><a href="http://www.reportmagic.org/"><img src="images/title.gif" width="288" height="66" alt="Report Magic for Analog" border="0" /></a> </td>
<td rowspan="2" align="left" valign="top"><img src="images/logo.gif" width="138" height="150" alt="Documentation" /> </td>
</tr>
<tr>
<td align="left" valign="top" width="291">
<h1>Date Format Specification</h1>
</td>
</tr>
</table>
<P>Report Magic uses date formats in several places. Most of them are in the
internationalization/advanced-settings files, <CODE>rdata.ini</CODE>,
<CODE>cdata.ini</CODE> and <CODE>lang.ini</CODE>. You can also specify a
date format in the name of output files and log files in your settings. All
of these formats use the same syntax, which allows the date in question
(the current date for output and log file names, the data value date for
other files) to be formatted any way you like.</P>
<P>Each part of a date (or time) is represented by a mnemonic letter. You
can use 'm' for months, 'd' for days, 'y' for years, 'h' for hours or 'n'
for minutes and 'w' for day of the week. In general one or two repeated
codes (e.g. 'mm') gives a numerical result of at least that many digits
(e.g. '09' for September). Numbers will always use all digits in the number.
That is, if your format has 'm' and the month is December, then the output
will be '12'. Three letters gives an abbreviation for the month or day of
the week (the abreviation may not be three letters in all languages). Four
letters gives a full month or weekday name. Here are some specifics and
examples to help.</P>
<P>The following codes produce results as follows (with english text):</P>
<TABLE BORDER=0>
<TR>
<TH ALIGN="LEFT">Code</TH>
<TH ALIGN="LEFT">Format</TH>
<TH ALIGN="LEFT">Notes</TH>
</TR>
<TR>
<TD>m</TD>
<TD>1,2,3,...,10,11,12</TD>
</TR>
<TR>
<TD>mm</TD>
<TD>01,02,03,...,10,11,12</TD>
</TR>
<TR>
<TD>mmm</TD>
<TD>Jan,Feb,Mar,...,Dec</TD>
<TD>
<FONT SIZE="-1">This will give the standard abbreviation for the
language (as specified in <CODE>lang.ini</CODE>) which may or may
not be three letters.</FONT>
</TD>
</TR>
<TR>
<TD>mmmm</TD>
<TD>January,February,March,...,December</TD>
</TR>
<TR>
<TD>d</TD>
<TD>1,2,3,...31</TD>
</TR>
<TR>
<TD>dd</TD>
<TD>01,02,03,...31</TD>
</TR>
<TR>
<TD>y</TD>
<TD>0,1,2,3,...,99</TD>
</TR>
<TR>
<TD>yy</TD>
<TD>00,01,02,03,...,99</TD>
</TR>
<TR>
<TD>yyy</TD>
<TD>000,001,002,003,...,1999, 2000, 2001,...</TD>
<TD>
<FONT SIZE="-1">This isn't a very useful option</FONT>
</TD>
</TR>
<TR>
<TD>yyyy</TD>
<TD>0000,0001,0002,0003,...,1999, 2000, 2001,...</TD>
</TR>
<TR>
<TD>w</TD>
<TD>1,2,3,...,7</TD>
</TR>
<TR>
<TD>ww</TD>
<TD>Su,Mo,Tu,...,Sa</TD>
<TD>
<FONT SIZE="-1">This will always give a two-letter abbreviation
of whatever the standard abbreviation is for the language. In some
languages, this is the same as 'www'.</FONT>
</TD>
</TR>
<TR>
<TD>www</TD>
<TD>Sun,Mon,Tue,...,Sat</TD>
<TD>
<FONT SIZE="-1">This will give the standard abbreviation for the
language (as specified in <CODE>lang.ini</CODE>) which may or may
not be three letters.</FONT>
</TD>
</TR>
<TR>
<TD>wwww</TD>
<TD>Sunday,Monday,Tuesday,...,Saturday</TD>
</TR>
<TR>
<TD>h</TD>
<TD>0,1,2,3,...24</TD>
</TR>
<TR>
<TD>hh</TD>
<TD>00,01,02,03,...24</TD>
</TR>
<TR>
<TD>n</TD>
<TD>0,1,2,3,...24</TD>
</TR>
<TR>
<TD>nn</TD>
<TD>00,01,02,03,...24</TD>
</TR>
<TR>
<TD>s</TD>
<TD>0,1,2,3,...24</TD>
</TR>
<TR>
<TD>ss</TD>
<TD>00,01,02,03,...24</TD>
</TR>
<TR>
<TD>am<BR>pm</TD>
<TD COLSPAN="2">This will add the appropiate text ('am' or 'pm') in the position
specified. It will also format the hours in 12-hour format. If you
use lower case letters then the output will be lower case. If you use
uppercase letters then the output will be uppercase.</TD>
</TR>
</TABLE>
<P>The following examples may help to clarify the format specification.
Assume an input date of <b>Saturday March 7th, 1998 15:05:32</b>:</P>
<TABLE BORDER=0>
<TR>
<TH>Format</TH>
<TH>Output value</TH>
</TR>
<TR>
<TD>mmm d, yyyy</TD>
<TD>Mar 7, 1998</TD>
</TR>
<TR>
<TD>www dd.mm.yy</TD>
<TD>Sat 07.03.98</TD>
</TR>
<TR>
<TD>wwww mmmm d, yyyy</TD>
<TD>Saturday March 7, 1998</TD>
</TR>
<TR>
<TD>yyyy.m.d</TD>
<TD>1998.3.7</TD>
</TR>
<TR>
<TD>yyyymmdd</TD>
<TD>19980307</TD>
</TR>
<TR>
<TD>hh:nn</TD>
<TD>15:05</TD>
</TR>
<TR>
<TD>hh:nn pm</TD>
<TD>3:05 pm</TD>
</TR>
<TR>
<TD>hh:nn AM</TD>
<TD>3:05 PM</TD>
</TR>
<TR>
<TD>h,nn</TD>
<TD>15,05</TD>
</TR>
<TR>
<TD>yyyymmddhhnn</TD>
<TD>199803071505</TD>
</TR>
</TABLE>
<div style="text-align: center; border-top: 2px solid black; border-bottom: 2px solid black; margin-top: 4px; margin-bottom: 6px; padding-top: 4px; padding-bottom:6px;">
[<a href="index.html">Introduction</a>] [<a href="map.html">Documentation map</a>] [<a href="siteindex.html">Index</a>] [<a href="faq.html">Frequently Asked Questions</a>] [<a href="license.html">License</a>]
</div>
<span class="fineprint">Send questions or comments to <a href="mailto:dgsupport@wadsack-allen.com">Wadsack-Allen Digital Group Support</a>.<br />
<a href="http://reportmagic.org/">Report Magic</a> 2.21 Documentation. Copyright © 1999-2003 <a href="http://wadsack-allen.com/">Wadsack-Allen</a>. All Rights Reserved.</span>
</body>
</html>
|