-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for %e when used as output from locale date_fmt #142
Comments
Hi, |
Oh I was just about to prepare the code for strptime/strftime and noticed it already does what you want. The I/O seems broken though. Newlines are missing. |
I fixed the I/O issues in 7d1f2c2
|
I was using this with |
There's the |
I know dateutils has its own, but portable (POSIX) systems expect |
I don't know the exact use case here. If I had to do it and there's a date in the style of
which can then be passed to
Or you explain what you need to accomplish. |
Hm, I thought I had; here is what lead me here: The use of |
Your example in my world would be:
i.e. you calculate the new timestamp then pass it to strptime to format it using libc's specifiers. |
Yeah that's fair enough |
As the
date*
utils repurpose%c
for the weekday count in a month I attempted to uselocale date_fmt
instead.Currently on my system
LC_TIME=C locale date_fmt
produces%a %b %e %H:%M:%S %Z %Y
which when used with-f
produces, for example:Sat Mar % 16:54:07 +00:00 2022
According to the 2017 POSIX version of
strftime(3)
%e
is defined as:Is there either a way to produce
-f
output in locale date format, or for dateutils to support morestrftime
spec?The text was updated successfully, but these errors were encountered: