Class: Cliptic::Time

Inherits:
Time
  • Object
show all
Defined in:
lib/cliptic/lib.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.abs(t) ⇒ Object


19
20
21
# File 'lib/cliptic/lib.rb', line 19

def self.abs(t)
  Time.at(t).utc
end

Instance Method Details

#to_sObject


22
23
24
# File 'lib/cliptic/lib.rb', line 22

def to_s
  self.strftime("%T")
end