[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Week number

Ilias bankai

9/19/2007 10:44:00 AM

Hi All,

Iâ??m newbie on Ruby and I like to know how I can manage to print out the
week numbers(counting from monday or sunday). Till now, I canâ??t find any
method for it. Can somebody please help.

Many Thanks
--
Posted via http://www.ruby-....

3 Answers

Vellingiri Arul

9/19/2007 10:52:00 AM

0

Ilias None wrote:
> Hi All,
>
> Iâ??m newbie on Ruby and I like to know how I can manage to print out the
> week numbers(counting from monday or sunday). Till now, I canâ??t find any
> method for it. Can somebody please help.
>
> Many Thanks

Dear Ilias,
What you are coming to say.
I can't understand the question fully.
Please express your thoughts what you have in your mind.

by
vellingiri
--
Posted via http://www.ruby-....

Bertram Scharpf

9/19/2007 11:11:00 AM

0

Hi,

Am Mittwoch, 19. Sep 2007, 19:44:24 +0900 schrieb Ilias None:
> I’m newbie on Ruby and I like to know how I can manage to print out the
> week numbers(counting from monday or sunday).

require "date"
d = Date.today
puts d.cwday, d.cweek, c.cwyear

Bertram


--
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-...

Ilias bankai

9/19/2007 2:15:00 PM

0


Thanks Bertram!

Bertram Scharpf wrote:
> Hi,
>
> Am Mittwoch, 19. Sep 2007, 19:44:24 +0900 schrieb Ilias None:
>> Iâ??m newbie on Ruby and I like to know how I can manage to print out the
>> week numbers(counting from monday or sunday).
>
> require "date"
> d = Date.today
> puts d.cwday, d.cweek, c.cwyear
>
> Bertram

--
Posted via http://www.ruby-....