Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2a247745
Commit
2a247745
authored
May 10, 2004
by
Skip Montanaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Point out that %p has no effect on the output hour in strptime unless %I is
used to parse the hour.
parent
21e17bc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Doc/lib/libtime.tex
Doc/lib/libtime.tex
+6
-2
No files found.
Doc/lib/libtime.tex
View file @
2a247745
...
...
@@ -234,8 +234,8 @@ specification, and are replaced by the indicated characters in the
\lineiii
{
\%
j
}{
Day of the year as a decimal number [001,366].
}{}
\lineiii
{
\%
m
}{
Month as a decimal number [01,12].
}{}
\lineiii
{
\%
M
}{
Minute as a decimal number [00,59].
}{}
\lineiii
{
\%
p
}{
Locale's equivalent of either AM or PM.
}{}
\lineiii
{
\%
S
}{
Second as a decimal number [00,61].
}{
(
1
)
}
\lineiii
{
\%
p
}{
Locale's equivalent of either AM or PM.
}{
(1)
}
\lineiii
{
\%
S
}{
Second as a decimal number [00,61].
}{
(
2
)
}
\lineiii
{
\%
U
}{
Week number of the year (Sunday as the first day of the
week) as a decimal number [00,53]. All days in a new year
preceding the first Sunday are considered to be in week 0.
}{}
...
...
@@ -256,6 +256,10 @@ Notes:
\begin{description}
\item
[(1)]
When used with the
\function
{
strptime()
}
function, the
\code
{
\%
p
}
directive only affects the output hour field if the
\code
{
\%
I
}
directive
is used to parse the hour.
\item
[(2)]
The range really is
\code
{
0
}
to
\code
{
61
}
; this accounts for leap
seconds and the (very rare) double leap seconds.
\end{description}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment