I have the following code that I have been using to get the date for "next Thursday" but it runs VERY slow. From what I can tell it is because I am using Date::Manip.
Is there a better/different way to do this?
#!/usr/bin/perl use Date::Manip; $today_dt = &ParseDate("today"); $new_dt = &Date_GetNext($today_dt, 'Thu', 1); $date = &UnixDate($new_dt, "%Y-%m-%d"); print $date . "\n";
In reply to code to get the date for "next Thursday" by bfdi533
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |