--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Adds a date and time format
- !ruby/struct:SM::Flow::P 
  body: Because this operation is not thread safe, you should define custom formats when you load you application. The recommended way to do that, is to use the before_app_loads bootloader.
- !ruby/struct:SM::Flow::P 
  body: If you want to add a format at runtime, you will need to use a mutex and synchronize it yourself.
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Parameters
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "key<Symbol>:"
    body: name of the format
  - !ruby/struct:SM::Flow::LI 
    label: "format<Hash>:"
    body: time format to use
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Returns
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "Hash:"
    body: a hash with all formats available
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Example
- !ruby/struct:SM::Flow::VERB 
  body: "  Merb::BootLoader.before_app_loads do\n    Date.add_format(:matt, &quot;%H:%M:%S %Y-%m-%d&quot;)\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: -- @public
full_name: DateAndTimeFormatting::ClassMethods#add_format
is_singleton: false
name: add_format
params: (key, format)
visibility: public
