On Monday, January 23, 2006 6:50:13 PM UTC-5, misiek wrote:
> Antonio Cangiano wrote:
> > misiek wrote:
> >
> >> how can I get the name of the day from Time.now
> >> Time.now.day is a number I would like to for example Mon...
> >> thx
> >
> >
> > Hi misiek,
> > you can use strftime.
> >
> > For example:
> >
> > t = Time.now
> > puts t.strftime("%a") #=> Mon
> > puts t.strftime("%A") #=> Monday
> >
> > ri strftime, will give you the complete list of options.
> >
> > Cheers,
> > Antonio
>
>
> thank you it was super easy
Hi,
What do you mean by "ri strftime"? How do I get a complete list?
Thanks!