time format

how to get "1:30 AM" from Time.now

t= Time.now #=>Fri Feb 01 01:30:10 +0530 2008 i need the output as "1:30 AM" How to do this

Use the time helper method provided at end,with the object to get the value .........strftime("%I:%M%p")

Thank u.... It worked...