Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (19 sloc) 0.515 kb
# encoding: UTF-8
# Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0
module TwitterCldr
module Localized
class LocalizedTimespan < LocalizedObject
def initialize(seconds, options = {})
super(seconds, options[:locale] || TwitterCldr.locale, options)
end
def to_s(options = {})
@formatter.format(@base_obj, options)
end
protected
def formatter_const
TwitterCldr::Formatters::TimespanFormatter
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.