Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/friendly/time.rb
Overview
This class was extracted from the cassandra gem by Evan Weaver As such, it is distributed under the terms of the apache license. See the APACHE-LICENSE file in the root of this project for more information.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.stamp ⇒ Object
6 7 8 |
# File 'lib/friendly/time.rb', line 6 def self.stamp Time.now.stamp end |
Instance Method Details
#stamp ⇒ Object
10 11 12 |
# File 'lib/friendly/time.rb', line 10 def stamp to_i * 1_000_000 + usec end |