Hacker News new | ask | show | jobs
by edavis 4557 days ago
Anybody know why %G was used instead of %Y?
1 comments

Mea culpa. I was looking for a formatter that would always format the year as 4 digits and never as 2, regardless of locale. But I didn't read the documentation correctly and thought that %G was what I needed.
Gotcha. I don't use Rails and wasn't trying to rub salt in, it just seemed like there must have been a reason %G was used instead of %Y and I was curious.