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
Post a Comment