Class: MPS::Interpolators::Time

Inherits:
Object
  • Object
show all
Defined in:
lib/mps/interpolators/time.rb

Constant Summary collapse

SIGNATURE_REGEX =
/:time/

Instance Method Summary collapse

Instance Method Details

#get_str(**ref) ⇒ Object



6
7
8
# File 'lib/mps/interpolators/time.rb', line 6

def get_str(**ref)
  Chronic.parse(ref[:args].first).strftime("Date: %Y-%m-%d, Time: %H:%M")
end