README.md in ffi-icu-0.1.6 vs README.md in ffi-icu-0.1.7

- old
+ new

@@ -99,9 +99,30 @@ curf = ICU::NumberFormatting.create('en-US', :currency) curf.format(1234.56, 'USD') #=> "$1,234.56" ``` +Time Formatting/Parsing +-------------------------- + +Examples: + +```ruby + # class method interface + f = ICU::TimeFormatting.format(Time.mktime(2015, 11, 12, 15, 21, 16), {:locale => 'cs_CZ', :zone => 'Europe/Prague', :date => :short, :time => :short}) + f #=> "12.11.15 15:21" + + # reusable formatting objects + formater = ICU::TimeFormatting.create(:locale => 'cs_CZ', :zone => 'Europe/Prague', :date => :long , :time => :none) + formater.format(Time.now) #=> "25. Ășnora 2015" +``` + +```ruby + # reusable formatting objects + formater = ICU::TimeFormatting.create(:locale => 'cs_CZ', :zone => 'Europe/Prague', :date => :long , :time => :none) + formater.parse("25. Ășnora 2015") #=> Wed Feb 25 00:00:00 +0100 2015 +``` + Tested on: ========== Platforms: