instance method
seconds_since_unix_epoch
Ruby on Rails 3.1.12
Since v3.0.20 PrivateSignature
seconds_since_unix_epoch()
No documentation comment.
Source
# File activesupport/lib/active_support/core_ext/date_time/conversions.rb, line 99
def seconds_since_unix_epoch
seconds_per_day = 86_400
(self - ::DateTime.civil(1970)) * seconds_per_day
end
Defined in activesupport/lib/active_support/core_ext/date_time/conversions.rb line 99
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in DateTime