Gossamer Forum
Home : General : Perl Programming :

Date::Calc

Quote Reply
Date::Calc
Hi. I'm trying to use Date::Calc to get the current week number. I just read this part on the official pages;

Quote:
The only exception is the function "Week_Number()", which may in fact return "0" when the given date actually lies in the last week of the PREVIOUS year, and of course the numbers for hours (0..23), minutes (0..59) and seconds (0..59).

.... does that mean it goes 0-51 , or 1-52 in terms of the way it counts the months?

Its very important this work right, otherwise the data will be put in the wrong table Frown

TIA

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Date::Calc In reply to
It sounds like Week_Number will range from 0-52. If you get 0, it means you are in the previous year, 52 is the last week of the year.

Cheers,

Alex
--
Gossamer Threads Inc.