[issue13927] Document time.ctime format

2019-09-12 Thread Paul Ganssle


Paul Ganssle  added the comment:

We've merged the PR and I think it resolves this issue, so we can close this 
issue now. Please let me know if it's not fully resolved and we can re-open.

Thanks Roger for reporting this and Harmandeep for making the PR and requested 
changes.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
type: behavior -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13927] Document time.ctime format

2019-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 1e17c4d414049ad2b5b6a0a53685efc7a550c5c5 by Miss Islington (bot) 
in branch '3.8':
bpo-13927: time.ctime and time.asctime return string explantion (GH-11303)
https://github.com/python/cpython/commit/1e17c4d414049ad2b5b6a0a53685efc7a550c5c5


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13927] Document time.ctime format

2019-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15645
pull_request: https://github.com/python/cpython/pull/16022

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13927] Document time.ctime format

2019-09-12 Thread Paul Ganssle


Paul Ganssle  added the comment:


New changeset 2d32bf1ef23c9e468b2e8afab3c24e7a2047ac36 by Paul Ganssle 
(Harmandeep Singh) in branch 'master':
bpo-13927: time.ctime and time.asctime return string explantion (GH-11303)
https://github.com/python/cpython/commit/2d32bf1ef23c9e468b2e8afab3c24e7a2047ac36


--
nosy: +p-ganssle

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13927] Document time.ctime format

2019-04-14 Thread Harmandeep Singh


Harmandeep Singh  added the comment:

I have updated the PR, this time I have kept it really simple, and have added 
examples showing both the cases.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13927] Document time.ctime format

2019-04-11 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

I guess what I'm thinking of `Www Mmm dd hh:mm:ss ` as representing isn't 
so much a format, but rather a literal replacement of where each value has a 
placeholder in the string (that is, a pattern).  So, even if `Www` doesn't mean 
anything, to me it means that the first three characters in the string are a 
Weekday, then there's a space, then Mmm is the month, then a space, then dd is 
the day number (with zero sometimes suppressed), etc.  

If that is more confusing than not using it, then that's fine.  I just wanted 
to mention it.

Using %d to me is also confusing since the docs define %d as `Day of the month 
as a decimal number [01,31]`.  This clearly isn't using 01, but rather 
suppressing the 0.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13927] Document time.ctime format

2019-04-11 Thread Harmandeep Singh


Harmandeep Singh  added the comment:

This is not python compatible format, I want something like "%a %b %d %H:%M:%S 
%Y" to explain it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13927] Document time.ctime format

2019-04-11 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

I would like to help get this issue merged as it's already been approved by a 
core developer.

Does anyone object to the change?  Victor made a suggestion on the PR for 
alternative wording and I wanted to give others a chance to comment on that.

Also, looking at the man page for asctime, they use `Www Mmm dd hh:mm:ss ` 
as the description of the output.  Maybe it would be helpful to add this since 
it shows the spacing and explicitly shows the day number taking up 2 characters?

Thanks!

--
nosy: +belopolsky, cheryl.sabella

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13927] Document time.ctime format

2019-01-04 Thread STINNER Victor


Change by STINNER Victor :


--
title: Extra spaces in the output of time.ctime -> Document time.ctime format
versions:  -Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com