strftime icon indicating copy to clipboard operation
strftime copied to clipboard

Support for weekyear

Open flomedja opened this issue 5 months ago • 2 comments

Description

There is no option for the week year representation as in this library . This package is used by openTelemetry for parsing logstash_format date and in some edge case the weekyear is different from the year. It will be helpful to support the weekyear to update the package in openTelemetry.

I propose to add the options :

  • %G for ISO 8601 year (week-based year)
  • %g for ISO 8601 year (2-digit)

@lestrrat If you are fine with that I can make request.

Thanks

flomedja avatar Jul 24 '25 02:07 flomedja

Sounds like a plan. If you can provide the code, that would be nice.

lestrrat avatar Jul 24 '25 02:07 lestrrat

Here is the MR

flomedja avatar Jul 25 '25 23:07 flomedja