Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/date.rb
Instance Method Summary collapse
-
#unix_time ⇒ Object
Returns the Unix time, also know as POSIX time or Unix epoch.
Instance Method Details
#unix_time ⇒ Object
Returns the Unix time, also know as POSIX time or Unix epoch. The number of seconds elapsed since midnight of January 1, 1970 UTC
- return
-
Fixnum
18 19 20 |
# File 'lib/date.rb', line 18 def unix_time strftime('%s').to_f end |