Module: Matiox::Initializer::Gregorian

Included in:
Matiox
Defined in:
lib/matiox/initializers/from_gregorian.rb

Instance Method Summary collapse

Instance Method Details

#from_iso8601(date) ⇒ Object



19
20
21
22
23
24
# File 'lib/matiox/initializers/from_gregorian.rb', line 19

def from_iso8601(date)
  raise Error::NotYetImplemented
  #de TODO: Convert to DateTime beforehand... after regular expression validation.
  converted = DateTime.strptime(date, "FORMAT")
  new(converted)
end

#from_ymd(date) ⇒ Object



12
13
14
15
16
17
# File 'lib/matiox/initializers/from_gregorian.rb', line 12

def from_ymd(date)
  raise Error::NotYetImplemented
  #de TODO: Convert to DateTime beforehand... after regular expression validation.
  converted = DateTime.strptime(date, "FORMAT")
  new(converted)
end

#from_ymdhms(date) ⇒ Object



5
6
7
8
9
10
# File 'lib/matiox/initializers/from_gregorian.rb', line 5

def from_ymdhms(date)
  raise Error::NotYetImplemented
  #de TODO: Convert to DateTime beforehand... after regular expression validation.
  converted = DateTime.strptime(date, "FORMAT")
  new(converted)
end