By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,835 Members | 2,305 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,835 IT Pros & Developers. It's quick & easy.

Print Week Number from System Time

P: 21
Hi

I am new in Perl, i want to print the week number from the Date.
I fetched date from localtime() function, now how can we convert this date into the week number?

Thanks in advace :)
Sep 17 '08 #1
Share this Question
Share on Google+
4 Replies


KevinADC
Expert 2.5K+
P: 4,059
the localtime function does not contain the number of the week. Maybe POSIX or one of the Date modules can determine that.
Sep 17 '08 #2

P: 21
I retrived the Today's date by the localtime() function, now i want to print the corronsponding week number in Perl...
Sep 17 '08 #3

numberwhun
Expert Mod 2.5K+
P: 3,503
I retrived the Today's date by the localtime() function, now i want to print the corronsponding week number in Perl...
If I am understanding what you want, then you want to be looking at this module from CPAN.

Regards,

Jeff
Sep 17 '08 #4

KevinADC
Expert 2.5K+
P: 4,059
I retrived the Today's date by the localtime() function, now i want to print the corronsponding week number in Perl...
Thats nice...good luck.
Sep 17 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.