For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > May 2005 > get the current week nbr









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author get the current week nbr
Alexandre Jaquet

2005-05-25, 3:56 pm

Hi again,

Rigth now I'm looking for a function to get the current w nbr we are.

Thanks in advance.

Alexandre Jaquet
A. Sinan Unur

2005-05-25, 3:56 pm

Alexandre Jaquet <alexj@freesurf.ch> wrote in news:42946a41$0$1159
$5402220f@news.sunrise.ch:

> Rigth now I'm looking for a function to get the current w nbr we are.


Posting here is not a substitute for searching CPAN yourself.

<URL: http://search.cpan.org/~sbeck/DateManip-5.42a/Manip.pod>

See, especially,

$wkno = Date_WOfYear($m,$d,$y,$first);

Sinan

--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)

comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/c...guidelines.html
Alexandre Jaquet

2005-05-25, 3:56 pm

A. Sinan Unur a écrit :
> Alexandre Jaquet <alexj@freesurf.ch> wrote in news:42946a41$0$1159
> $5402220f@news.sunrise.ch:
>
>
>
>
> Posting here is not a substitute for searching CPAN yourself.
>
> <URL: http://search.cpan.org/~sbeck/DateManip-5.42a/Manip.pod>
>
> See, especially,
>
> $wkno = Date_WOfYear($m,$d,$y,$first);
>
> Sinan
>



great thanks
Glenn Jackman

2005-05-25, 3:56 pm

At 2005-05-25 08:06AM, Alexandre Jaquet <alexj@freesurf.ch> wrote:
> Hi again,
>
> Rigth now I'm looking for a function to get the current w nbr we are.


use POSIX 'strftime';
my $wno = strftime '%V', localtime;

--
Glenn Jackman
NCF Symin
glennj@ncf.ca
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com