Hi,
That would be: Time.now.strftime("%W") and Date::commercial(year,
week, day)
On Nov 21, 2007 8:56 AM, <ror-hHQ910cHp2NOdVoTLTQirQ@public.gmane.org>
wrote:
>
> Hi,
>
> how can I read the calendar week (this week: 47) from a time variable -
> and vice versa how can I read a time variable from calendar week (e.g.
> monday
> 0h)?
>
> thx, Rudolf
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---