in reply to (Golf) Next second Tuesday

You do know that this works, right?

perl -we 'use Date::Manip; print UnixDate("second tuesday of april", " +%c\n")'

Replies are listed 'Best First'.
Re^2: (Golf) Next second Tuesday
by shmem (Chancellor) on Apr 08, 2009 at 09:50 UTC

    Now I know it - that's really nice, ambrus++. But its not golf ;-)

      Well, it's already not too much longer than the other solutions in your thread, but if you want golf, here's my try.

      perl -MDate::Manip -E'say UnixDate"2ndtueofapr","%c"'

      That strange words stands for 2nd (second) tue (Tuesday) of apr (April) but apparently Date::Manip follows the tradition of BASIC in not requiring spaces.

      Update 2011-02-07: this no longer works in Date::Manip version 6.12. This works:

      perl -MDate::Manip -E'say UnixDate"2nd tue of apr","%c"'
        I think shmem means you used modules. No modules in golf.