If I wanted to find out what day of the year it is, how would I do that in Perl? I know I could easily just do a `date +%j` or something, but I'm curious how it could be done with the language itself in a manner that's OS-independent.
Also, if I wanted to find out how many days there are between two dates, how might I go about doing it? For example, if I wanted to calculate how many days there are between now and June 17th of 2003, how could it be done?
Thanks for any suggestions :)
In reply to Date Calculation by Segfault
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |