/usr/share/doc/mailutils-doc/mailutils.html/Calendar-date-items.html is in mailutils-doc 1:2.99.98-2.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Published by the Free Software Foundation,
51 Franklin Street, Fifth Floor
Boston, MA 02110-1301, USA
Copyright (C) 1999-2004, 2008-2012 Free Software Foundation,
Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no
Invariant Sections, no Front-Cover, and no Back-Cover texts.
A copy of the license is included in the section entitled "GNU Free
Documentation License". -->
<!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ -->
<head>
<title>GNU Mailutils Manual: Calendar date items</title>
<meta name="description" content="GNU Mailutils Manual: Calendar date items">
<meta name="keywords" content="GNU Mailutils Manual: Calendar date items">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="index.html#Top" rel="start" title="Top">
<link href="Function-Index.html#Function-Index" rel="index" title="Function Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Date-Input-Formats.html#Date-Input-Formats" rel="up" title="Date Input Formats">
<link href="Time-of-day-items.html#Time-of-day-items" rel="next" title="Time of day items">
<link href="General-date-syntax.html#General-date-syntax" rel="prev" title="General date syntax">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.indentedblock {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
div.smalllisp {margin-left: 3.2em}
kbd {font-style:oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nocodebreak {white-space:nowrap}
span.nolinebreak {white-space:nowrap}
span.roman {font-family:serif; font-weight:normal}
span.sansserif {font-family:sans-serif; font-weight:normal}
ul.no-bullet {list-style: none}
-->
</style>
</head>
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<a name="Calendar-date-items"></a>
<div class="header">
<p>
Next: <a href="Time-of-day-items.html#Time-of-day-items" accesskey="n" rel="next">Time of day items</a>, Previous: <a href="General-date-syntax.html#General-date-syntax" accesskey="p" rel="prev">General date syntax</a>, Up: <a href="Date-Input-Formats.html#Date-Input-Formats" accesskey="u" rel="up">Date Input Formats</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Function-Index.html#Function-Index" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<a name="Calendar-date-items-1"></a>
<h3 class="section">B.2 Calendar date items</h3>
<a name="index-calendar-date-item"></a>
<p>A <em>calendar date item</em> specifies a day of the year. It is
specified differently, depending on whether the month is specified
numerically or literally. All these strings specify the same calendar date:
</p>
<div class="example">
<pre class="example">1972-09-24 # ISO 8601.
72-9-24 # Assume 19xx for 69 through 99,
# 20xx for 00 through 68.
72-09-24 # Leading zeros are ignored.
9/24/72 # Common U.S. writing.
24 September 1972
24 Sept 72 # September has a special abbreviation.
24 Sep 72 # Three-letter abbreviations always allowed.
Sep 24, 1972
24-sep-72
24sep72
</pre></div>
<p>The year can also be omitted. In this case, the last specified year is
used, or the current year if none. For example:
</p>
<div class="example">
<pre class="example">9/24
sep 24
</pre></div>
<p>Here are the rules.
</p>
<a name="index-ISO-8601-date-format"></a>
<a name="index-date-format_002c-ISO-8601"></a>
<p>For numeric months, the <small>ISO</small> 8601 format
‘<samp><var>year</var>-<var>month</var>-<var>day</var></samp>’ is allowed, where <var>year</var> is
any positive number, <var>month</var> is a number between 01 and 12, and
<var>day</var> is a number between 01 and 31. A leading zero must be present
if a number is less than ten. If <var>year</var> is 68 or smaller, then 2000
is added to it; otherwise, if <var>year</var> is less than 100,
then 1900 is added to it. The construct
‘<samp><var>month</var>/<var>day</var>/<var>year</var></samp>’, popular in the United States,
is accepted. Also ‘<samp><var>month</var>/<var>day</var></samp>’, omitting the year.
</p>
<a name="index-month-names-in-date-strings"></a>
<a name="index-abbreviations-for-months"></a>
<p>Literal months may be spelled out in full: ‘<samp>January</samp>’,
‘<samp>February</samp>’, ‘<samp>March</samp>’, ‘<samp>April</samp>’, ‘<samp>May</samp>’, ‘<samp>June</samp>’,
‘<samp>July</samp>’, ‘<samp>August</samp>’, ‘<samp>September</samp>’, ‘<samp>October</samp>’,
‘<samp>November</samp>’ or ‘<samp>December</samp>’. Literal months may be abbreviated
to their first three letters, possibly followed by an abbreviating dot.
It is also permitted to write ‘<samp>Sept</samp>’ instead of ‘<samp>September</samp>’.
</p>
<p>When months are written literally, the calendar date may be given as any
of the following:
</p>
<div class="example">
<pre class="example"><var>day</var> <var>month</var> <var>year</var>
<var>day</var> <var>month</var>
<var>month</var> <var>day</var> <var>year</var>
<var>day</var>-<var>month</var>-<var>year</var>
</pre></div>
<p>Or, omitting the year:
</p>
<div class="example">
<pre class="example"><var>month</var> <var>day</var>
</pre></div>
<hr>
<div class="header">
<p>
Next: <a href="Time-of-day-items.html#Time-of-day-items" accesskey="n" rel="next">Time of day items</a>, Previous: <a href="General-date-syntax.html#General-date-syntax" accesskey="p" rel="prev">General date syntax</a>, Up: <a href="Date-Input-Formats.html#Date-Input-Formats" accesskey="u" rel="up">Date Input Formats</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Function-Index.html#Function-Index" title="Index" rel="index">Index</a>]</p>
</div>
</body>
</html>
|