ruby on rails - Is there an equivalent in RoR for PHP's gmdate? -


for instance, if called:

gmdate("m-d-yth:i:s") 

is there similar case in ror? guess datetime.now.hour, datetime.now.year, etc. etc. seems extremely wrong.

see strftime() in ruby's documentation on time, formats time according directives in given format string.


Comments

Popular posts from this blog

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

apache - Add omitted ? to URLs -

php - How can I stop spam on my custom forum/blog? -