Method | Alias | Time | Date | DateTime |
---|---|---|---|---|
- | minus_without_duration minus_without_coercion |
v | ||
<=> | compare_without_coercion | v | v | v |
acts_like_date? | v | v | ||
acts_like_time? | v | v | ||
advance | v | v | v | |
ago | v | v | v | |
at | at_without_coercion | v | ||
at_with_coercion | at | v | ||
beginning_of_day | at_beginning_of_day at_midnight midnight |
v | v | v |
beginning_of_hour | at_beginning_of_hour | v | v | |
beginning_of_minute | at_beginning_of_minute | v | v | |
beginning_of_week | at_beginning_of_week | v | ||
beginning_of_week= | v | |||
ceil | v | |||
change | v | v | v | |
civil_from_format | v | |||
compare_with_coercion | <=> | v | v | v |
current | v | v | v | |
days_in_month | v | |||
days_in_year | v | |||
default_inspect | v | |||
end_of_day | at_end_of_day | v | v | v |
end_of_hour | at_end_of_hour | v | v | |
end_of_minute | at_end_of_minute | v | v | |
eql_with_coercion | eql? | v | ||
eql? | eql_without_coercion | v | ||
find_beginning_of_week! | v | |||
find_zone | v | |||
find_zone! | v | |||
floor | v | |||
formatted_offset | v | |||
formatted_offset | v | |||
inspect | default_inspect | v | v | |
localtime | getlocal | v | ||
middle_of_day | at_midday at_middle_of_day at_noon midday noon |
v | v | v |
minus_with_coercion | - | v | ||
next_day | v | |||
next_month | v | |||
next_year | v | |||
nsec | v | |||
prev_day | v | |||
prev_month | v | |||
prev_year | v | |||
readable_inspect | inspect | v | v | |
sec_fraction | v | |||
seconds_since_midnight | v | v | ||
seconds_until_end_of_day | v | v | ||
since | in | v | v | v |
subsec | v | |||
to_f | v | |||
to_formatted_s | to_s | v | v | v |
to_i | v | |||
to_s | to_default_s | v | v | v |
to_time | v | v | v | |
tomorrow | v | |||
use_zone | v | |||
usec | v | |||
utc | getgm getutc gmtime |
v | ||
utc_offset | v | |||
utc? | v | |||
xmlschema | v | |||
yesterday | v | |||
zone | v | |||
zone= | v |
Created
April 17, 2021 12:14
-
-
Save shevalda/8ec428f0241e84559d0541c2bed0fa33 to your computer and use it in GitHub Desktop.
Mapping methods in Rails 6.1.3.1 Date, Time, DateTime class
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment