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

c# - IMAP GMAIL getting folder list problem -

CUDA shared memory -