Welcome
Register
Projects
Help
About
Blog
Use OpenID
Login
Password
OpenID URL
Remember me
RSpec
Ruby on Rails
Ruby
Flowdock
method
to_default_s
v3.1.0
-
Show latest stable
-
0 notes
- Class:
Date
1.0.0
1.1.1
1.1.6
1.2.0
1.2.6
2.0.0
2.0.3
2.1.0
2.2.1
2.3.2
2.3.8
3.0.0
3.0.5
3.0.9
(0)
3.1.0
(0)
3.2.1
(0)
3.2.3
(0)
3.2.8
(0)
3.2.13
(0)
4.0.2
(0)
4.1.8
(0)
4.2.1
(0)
4.2.7
(0)
What's this?
Related methods
Class methods (6)
beginning_of_week
(>= v4.0.2)
beginning_of_week=
(>= v4.0.2)
current
find_beginning_of_week!
(>= v4.0.2)
tomorrow
yesterday
Instance methods (80)
<=>
(>= v4.0.2)
>>
-
+
acts_like_date?
advance
ago
as_json
at_beginning_of_day
at_beginning_of_month
at_beginning_of_quarter
at_beginning_of_week
at_beginning_of_year
at_end_of_day
(>= v4.0.2)
at_end_of_month
at_end_of_quarter
at_end_of_week
at_end_of_year
at_midday
(>= v4.1.8)
at_middle_of_day
(>= v4.1.8)
at_midnight
at_noon
(>= v4.1.8)
beginning_of_day
beginning_of_month
beginning_of_quarter
beginning_of_week
beginning_of_year
change
compare_with_coercion
(>= v4.0.2)
compare_without_coercion
(>= v4.0.2)
days_to_week_start
(>= v3.2.1)
default_inspect
end_of_day
end_of_month
end_of_quarter
end_of_week
end_of_year
freeze
future?
in
inspect
in_time_zone
(>= v4.0.2)
iso8601
midday
(>= v4.1.8)
middle_of_day
(>= v4.1.8)
midnight
minus_with_duration
minus_without_duration
monday
months_ago
months_since
next_month
next_week
next_year
noon
(>= v4.1.8)
past?
plus_with_duration
plus_without_duration
prev_month
prev_week
prev_year
readable_inspect
rfc3339
since
sunday
to_date
to_datetime
today?
to_default_s
to_formatted_s
to_json
(<= v2.3.2)
tomorrow
to_s
to_time
to_time_in_current_zone
weeks_ago
xmlschema
years_ago
years_since
yesterday
= private
= protected
to_default_s
(format = :default)
public
Alias
for
Date#to_s
Register
or
log in
to add new notes.