{"action":"closed","issue":{"url":"https://api.github.com/repos/hroptatyr/dateutils/issues/45","repository_url":"https://api.github.com/repos/hroptatyr/dateutils","labels_url":"https://api.github.com/repos/hroptatyr/dateutils/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/hroptatyr/dateutils/issues/45/comments","events_url":"https://api.github.com/repos/hroptatyr/dateutils/issues/45/events","html_url":"https://github.com/hroptatyr/dateutils/issues/45","id":145415585,"number":45,"title":"ISO years: %G undocumented, and %Y may not translate correctly with %V","user":{"login":"smemsh","id":9385397,"avatar_url":"https://avatars.githubusercontent.com/u/9385397?v=3","gravatar_id":"","url":"https://api.github.com/users/smemsh","html_url":"https://github.com/smemsh","followers_url":"https://api.github.com/users/smemsh/followers","following_url":"https://api.github.com/users/smemsh/following{/other_user}","gists_url":"https://api.github.com/users/smemsh/gists{/gist_id}","starred_url":"https://api.github.com/users/smemsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smemsh/subscriptions","organizations_url":"https://api.github.com/users/smemsh/orgs","repos_url":"https://api.github.com/users/smemsh/repos","events_url":"https://api.github.com/users/smemsh/events{/privacy}","received_events_url":"https://api.github.com/users/smemsh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-02T20:31:00Z","updated_at":"2016-04-04T04:46:20Z","closed_at":"2016-04-04T04:46:19Z","body":"was trying to get the Vulgar years/months/days for a full ISO year (to prepopulate some datafiles), using `dseq`, but there is no way to do it without `%G` (documented in `date.1` but not present in `dseq.1`):\r\n```\r\n $ dateutils.dseq -i %Y%V%u -f '%Y %m %d %V %u' 20160101 20170101 | head\r\n2015 01 04 01 01\r\n2015 01 05 01 02\r\n2015 01 06 01 03\r\n2015 01 07 01 04\r\n2016 01 08 01 05\r\n2016 01 09 01 06\r\n2016 01 10 01 07\r\n2016 01 11 02 01\r\n2016 01 12 02 02\r\n2016 01 13 02 03\r\n```\r\n\r\nThese are incorrect (discontiguous).  Instead %G is needed:\r\n```\r\n $ dateutils.dseq -i %Y%V%u -f '%G %m %d %V %u' 20160101 20170101 | head\r\n2016 01 04 01 01\r\n2016 01 05 01 02\r\n2016 01 06 01 03\r\n2016 01 07 01 04\r\n2016 01 08 01 05\r\n2016 01 09 01 06\r\n2016 01 10 01 07\r\n2016 01 11 02 01\r\n2016 01 12 02 02\r\n2016 01 13 02 03\r\n```\r\n\r\nThe output is correct / as intended.  So `%G` should be documented.  However, in this case I believe the input parsing is wrong, because the date `20160101` as `%Y%V%u` does not make sense, it should return an error due to ambiguity (mix of vulgar and ISO) and insist on `%G%V%u` as input format.  FWIW, these commands have identical outputs:\r\n\r\n```\r\ndateutils.dseq -i %Y%V%u -f '%G %m %d %V %u' 20160101 20170101\r\ndateutils.dseq -i %G%V%u -f '%G %m %d %V %u' 20160101 20170101\r\n```\r\n\r\n(Note that I'm using the Debian version (0.3.1) but I scanned the v0.3.1..v0.3.5 git log and didn't find any relevant changes (and also `%G` itself was only present in the test suite for master branch))"}}