> How can i get the number of the week from localtime function ?

- feed localtime with "january 04" in this year (for ISO 8601)
- find out when that week begins;
- find out the difference between today and that day;
- divide that by seven days (and add one).

Or, use a date module:

use Date::Tie;
tie %date, 'Date::Tie';
print $date{week};

- Flávio Soibelmann Glock

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to