Today these variables (maybe others) give a wrong year !!!!!! :
%ICUDateTimePlus%1%Sundays%YYMMdd% : 251229 !!! Must be 241229
%ICUDateTimePlus%3%Days%YYMMdd% : 251229 !!! Must be 241229
Today these variables (maybe others) give a wrong year !!!!!! :
%ICUDateTimePlus%1%Sundays%YYMMdd% : 251229 !!! Must be 241229
%ICUDateTimePlus%3%Days%YYMMdd% : 251229 !!! Must be 241229
The feature is working properly:
Do you see the difference? It's yy not YY for the year. Taken form the Formating Dates and Times ICU documentation:
Upper-case y is a week of year based calendars calculation, and shouldn't be used near year boundaries unless you know that the results may differ from what you expect.
-rob.
A very big thank you! Sorry for this rookie mistake! My Christmas Day saw too much good wine!
No problem; I've done the same myself, which is why I recognized it right away :). I think the Unix programmers drank too much wine when deciding that y and Y should have nearly identical functionality, except in critical ways around year end!
-rob.
griff da man ![]()
Ah who could fault Y for trying to ring in yyyy+1 a little early
See this thread from a few days ago: