Class: DateTime

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

Class Method Summary collapse

Class Method Details

.now(sg = Date::ITALY) ⇒ Object


27
28
29
# File 'lib/delorean.rb', line 27

def now(sg=Date::ITALY)
  self.iso8601( Time.now.to_datetime.iso8601, sg )
end

.now_without_deloreanObject


25
# File 'lib/delorean.rb', line 25

alias_method :now_without_delorean, :now