class Saringan::Parsers::DateTime
Constants
- FORMAT
- MATCHER
Public Class Methods
clean(value)
click to toggle source
# File lib/saringan/parsers/date_time.rb, line 21 def self.clean(value) value.gsub(/^dt/, '') end
parse(value)
click to toggle source
# File lib/saringan/parsers/date_time.rb, line 15 def self.parse(value) date = ::DateTime.strptime(value, FORMAT) ::DateTime.new date.year, date.month, date.day, date.hour, date.min, \ date.sec, ::DateTime.current.zone end
Private Class Methods
matcher()
click to toggle source
# File lib/saringan/parsers/date_time.rb, line 27 def self.matcher MATCHER end