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

jQuery clickable div with working mailto link inside -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -