Duration helpers for Rails.