[Ror-es] operaciones con fechas

William Betancur ruby-forum-incoming at andreas-s.net
Wed Jul 18 17:34:08 GMT 2007


dias = ((vehcliente.fch_final.to_time - Time.now)/86400).to_i + 1

calcular los dias transcurridos entre dos fechas.

Gracias al foro y a personas muy colaborativas lo pude solucionar.


-- 
Posted via http://www.ruby-forum.com/.


More information about the Ror-es mailing list