Skip to content

Commit

Permalink
replace duplicate entries of to_formatted_s with to_fs
Browse files Browse the repository at this point in the history
  • Loading branch information
sampatbadhe committed Dec 8, 2021
1 parent 2d4ef85 commit 0055b72
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -27,7 +27,7 @@ class Date
# date = Date.new(2007, 11, 10) # => Sat, 10 Nov 2007
#
# date.to_formatted_s(:db) # => "2007-11-10"
# date.to_formatted_s(:db) # => "2007-11-10"
# date.to_fs(:db) # => "2007-11-10"
#
# date.to_formatted_s(:short) # => "10 Nov"
# date.to_formatted_s(:number) # => "20071110"
Expand Down
Expand Up @@ -15,7 +15,7 @@ class DateTime
# datetime = DateTime.civil(2007, 12, 4, 0, 0, 0, 0) # => Tue, 04 Dec 2007 00:00:00 +0000
#
# datetime.to_formatted_s(:db) # => "2007-12-04 00:00:00"
# datetime.to_formatted_s(:db) # => "2007-12-04 00:00:00"
# datetime.to_fs(:db) # => "2007-12-04 00:00:00"
# datetime.to_formatted_s(:number) # => "20071204000000"
# datetime.to_formatted_s(:short) # => "04 Dec 00:00"
# datetime.to_formatted_s(:long) # => "December 04, 2007 00:00"
Expand Down
Expand Up @@ -32,7 +32,7 @@ class Time
# time = Time.now # => 2007-01-18 06:10:17 -06:00
#
# time.to_formatted_s(:time) # => "06:10"
# time.to_formatted_s(:time) # => "06:10"
# time.to_fs(:time) # => "06:10"
#
# time.to_formatted_s(:db) # => "2007-01-18 06:10:17"
# time.to_formatted_s(:number) # => "20070118061017"
Expand Down

0 comments on commit 0055b72

Please sign in to comment.