Sha256: e2694dd574034792d66059a228b1c82d2423b2b8fd8d23e7c51c9a460407768c
Contents?: true
Size: 284 Bytes
Versions: 4
Compression:
Stored size: 284 Bytes
Contents
module Stack module Filters module DateTime include Stack::Filters::Register def date_to_string(date) date.strftime("%d %b %Y") end def date_to_xmlschema(date) date.strftime("%Y-%m-%dT%H:%M:%S%Z") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
stack-0.0.9 | lib/stack/filters/datetime.rb |
stack-0.0.8 | lib/stack/filters/datetime.rb |
stack-0.0.7 | lib/stack/filters/datetime.rb |
stack-0.0.6 | lib/stack/filters/datetime.rb |