Class DateTime
In: lib/ferret/number_tools.rb
Parent: Object

Methods

to_s_lex  

Public Instance methods

Convert the DateTime 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 date. The options are :year, :month, :day, :hour, :minute and :second
return:a lexicographically sortable string representing the date

[Validate]