Overview
| Artifact ID: | 07caefb7d6dcb63bd0fd76dd690bbee28196311c |
|---|---|
| Ticket: | 225965ffffffffffffffffffffffffffffffffff
[clock format $date -format "%Y-%W"] fails on w 53 |
| User & Date: | kennykb on 2001-02-09 03:21:24 |
Changes
- icomment:
This is actually a documentation problem. %W is defined in 'strftime' to be the week number of the year, with the first Monday of the year defined to begin week 1. The correct format specifier for ISO-8601 week-of-year is %V. (There is also a %U, which defines week 1 to begin on the first Sunday of the year.) compat/strftime.c contains correct code for %V, but the man page is missing it. (It's also missing a bunch of the other formats).
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"