I've never seen a good solution to this question in unix shell. Over the years, I've collected several utilities in "C" (written by guys smarter than me) that answer this question, and other date related questions.
Provide an email address, and I'll send you the "C" source.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.