method

seconds_since_unix_epoch

rails latest stable - Class: ActiveSupport::CoreExtensions::DateTime::Conversions

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

seconds_since_unix_epoch()
private

No documentation available.

# File activesupport/lib/active_support/core_ext/date_time/conversions.rb, line 100
        def seconds_since_unix_epoch
          seconds_per_day = 86_400
          (self - ::DateTime.civil(1970)) * seconds_per_day
        end