# File lib/active_support/core_ext/date_time/conversions.rb, line 89 def to_f days_since_unix_epoch = self - ::DateTime.civil(1970) (days_since_unix_epoch * 86_400).to_f end