method
mjd
v1_8_7_72 -
Show latest stable
- Class:
Date
mjd()public
Get the date as a Modified Julian Day Number.
# File lib/date.rb, line 1058
def mjd() self.class.jd_to_mjd(jd) end Related methods
- Instance methods
- +
- -
- <<
- <=>
- ===
- >>
- _dump
- ajd
- amjd
- asctime
- ctime
- cwday
- cweek
- cwyear
- day
- day_fraction
- downto
- england
- eql?
- gregorian
- gregorian?
- hash
- inspect
- italy
- jd
- julian
- julian?
- ld
- leap?
- mday
- mjd
- mon
- month
- new_start
- next
- start
- step
- strftime
- succ
- to_s
- to_yaml
- upto
- wday
- yday
- year
- Class methods
- _load
- _parse
- _strptime
- ajd_to_amjd
- ajd_to_jd
- amjd_to_ajd
- civil
- civil_to_jd
- commercial
- commercial_to_jd
- day_fraction_to_time
- gregorian?
- gregorian_leap?
- jd
- jd_to_ajd
- jd_to_civil
- jd_to_commercial
- jd_to_ld
- jd_to_mjd
- jd_to_ordinal
- jd_to_wday
- julian?
- julian_leap?
- ld_to_jd
- mjd_to_jd
- new
- ordinal
- ordinal_to_jd
- parse
- strptime
- time_to_day_fraction
- time_to_day_fraction
- today
- valid_civil?
- valid_commercial?
- valid_jd?
- valid_ordinal?
- valid_time?
- zone_to_diff
- Private methods
-
_parse_day -
_parse_ddd -
_parse_dot -
_parse_eu -
_parse_iso -
_parse_iso2 -
_parse_jis -
_parse_mday -
_parse_mon -
_parse_sla -
_parse_time -
_parse_us -
_parse_vms -
_parse_year -
_strptime_i -
complete_frags -
deprecated_alias -
deprecated_class_method_alias -
fix_style -
jd_to_weeknum -
new_by_frags -
now -
num_pattern? -
once -
rewrite_frags -
s3e -
valid_date_frags? -
valid_time_frags? -
valid_weeknum? -
weeknum -
weeknum_to_jd -
civil -
commercial -
emit -
emit_a -
emit_ad -
emit_au -
emit_n -
emit_sn -
emit_w -
emit_z -
fix_style -
hour -
min -
new_offset -
next_day -
offset -
ordinal -
sec -
sec_fraction -
time -
weeknum0 -
weeknum1 -
wnum0 -
wnum1 -
zone