Sha256: 7acb95749aedc2dba649ecf944c5cde707fafc5d4b2c1b94dd79e49e8c5958d7

Contents?: true

Size: 260 Bytes

Versions: 15

Compression:

Stored size: 260 Bytes

Contents

# encoding: utf-8
class DateTime

  def display
    "#{Configuration::DAYS[self.wday]} #{self.day} de #{Configuration::MONTHS[self.month-1]} #{self.year == Date.today.year ? '' : self.year}"
  end

  def short_display
    self.strftime('%-d/%-m/%Y')
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sinatra-hexacta-1.7.20 lib/sinatra/extensions/date_time.rb
sinatra-hexacta-1.7.19 lib/sinatra/extensions/date_time.rb
sinatra-hexacta-1.7.18 lib/sinatra/extensions/date_time.rb
sinatra-hexacta-1.7.17 lib/sinatra/extensions/date_time.rb
sinatra-hexacta-1.7.16 lib/sinatra/extensions/date_time.rb
sinatra-hexacta-1.7.15 lib/sinatra/extensions/date_time.rb
sinatra-hexacta-1.7.14 lib/sinatra/extensions/date_time.rb
sinatra-hexacta-1.7.13 lib/sinatra/extensions/date_time.rb
sinatra-hexacta-1.7.12 lib/sinatra/extensions/date_time.rb
sinatra-hexacta-1.7.11 lib/sinatra/extensions/date_time.rb
sinatra-hexacta-1.7.10 lib/sinatra/extensions/date_time.rb
sinatra-hexacta-1.7.9 lib/sinatra/extensions/date_time.rb
sinatra-hexacta-1.7.8 lib/sinatra/extensions/date_time.rb
sinatra-hexacta-1.7.7 lib/sinatra/extensions/date_time.rb
sinatra-hexacta-1.7.6 lib/sinatra/extensions/date_time.rb