Kiss A simpler, smarter web application framework for Ruby

Kiss::Format::DateTime Subclass of self

Public Class Methods

parse(value) source

Not documented

    # File lib/kiss/format.rb, line 119
        def parse(value)
          ::Time.parse(value.gsub(/[-\.]/,'/'))
        end
    
validate(value) source

Not documented

    # File lib/kiss/format.rb, line 127
        def validate(value)
          value =~ /\S/ ? super(value) : nil
        end
    
value_to_s(value) source

Not documented

    # File lib/kiss/format.rb, line 123
        def value_to_s(value)
          value.strftime("%m/%d/%Y %I:%M %p").gsub(/0(\d[\:\/])/,'\1')
        end
    

Disabled; run with $DEBUG to generate this.