Parent

Methods

Class Index [+]

Quicksearch

Time

Constants

LEX_FORMAT

Public Instance Methods

to_s_lex(precision = :day) click to toggle source

Convert the Time to a lexicographically sortable string with the required precision. The format used is %Y%m%d %H:%M:%S.

precision

the precision required in the string version of the time. The options are :year, :month, :day, :hour, :minute and :second

return

a lexicographically sortable string representing the date

     # File lib/ferret/number_tools.rb, line 106
106:   def to_s_lex(precision = :day)
107:     self.strftime(LEX_FORMAT[precision])
108:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.