[issue42091] strftime returns empty string for -d, -I 3.8.3

2022-01-23 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue42091] strftime returns empty string for -d, -I 3.8.3

2020-10-19 Thread Eric V. Smith

Eric V. Smith  added the comment:

Can you tell us what the expected behavior is?

>From the strftime docs: "The full set of format codes supported varies across 
>platforms, because Python calls the platform C library’s strftime() function, 
>and platform variations are common. To see the full set of format codes 
>supported on your platform, consult the strftime(3) documentation."

You're probably just seeing platform-specific behavior.

On cygwin, I get an empty string.

--
nosy: +eric.smith

___
Python tracker 

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



[issue42091] strftime returns empty string for -d, -I 3.8.3

2020-10-19 Thread Pridhvi Myneni


New submission from Pridhvi Myneni :

My system has python from MSYS2 integrated with my windows environment, so I 
can't test if Windows exhibits the same issue; however, this works perfectly in 
Ubuntu. The issue is %-d, %-I don't work as expected and instead cause the 
function call to return an empty string. 

Steps to reproduce:
import datetime
now = datetime.datetime.now()
now.strftime("%-I")
...

--
messages: 379018
nosy: PMARINA
priority: normal
severity: normal
status: open
title: strftime returns empty string for -d, -I 3.8.3
type: behavior
versions: Python 3.8

___
Python tracker 

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