Method: Date#mjd
- Defined in:
- ext/date_ext/date_ext.c
#mjd ⇒ Integer Also known as: amjd
Return the number of days since 1858-11-17.
Date.civil(2009, 1, 2).mjd
# => 54833
2415 2416 2417 2418 2419 2420 |
# File 'ext/date_ext/date_ext.c', line 2415 static VALUE rhrd_mjd(VALUE self) { rhrd_t *d; Data_Get_Struct(self, rhrd_t, d); RHR_FILL_JD(d) return LONG2NUM(d->jd - RHR_JD_MJD); } |