-
-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Some strftime implementations support non-zero padded numbers.
For example, in Python
>>> from datetime import datetime
>>> datetime.strftime(datetime.now(), '%-d')
'1'
This is documented in glibc's strftime.
Windows has its own set of codes which use # instead of -:
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strftime-wcsftime-strftime-l-wcsftime-l?redirectedfrom=MSDN&view=vs-2019
Another reference: https://strftime.org/#platforms
Metadata
Metadata
Assignees
Labels
No labels