Skip to content
#

newsreader

Here are 19 public repositories matching this topic...

rainchen
rainchen commented Feb 21, 2020

the original demo code in README is:

The Date#format Method
class Date
  def format( spec ) self.strftime( spec.to_strftime ); end
end
The new Date#format method formats the date like the passed in example:

date = Date.today   ## test run on 2020-02-09

p date.format( 'January 02, 2006' )         #=> "February 09, 2020"

but the 'format' method is a built in stdlib privat

Improve this page

Add a description, image, and links to the newsreader topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the newsreader topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.