months_between {SparkR} | R Documentation |
Returns number of months between dates 'date1' and 'date2'.
## S4 method for signature 'Column' months_between(y, x) months_between(y, x)
Other datetime_funcs: add_months
,
add_months
; date_add
,
date_add
; date_format
,
date_format
; date_sub
,
date_sub
; datediff
,
datediff
; dayofmonth
,
dayofmonth
; dayofyear
,
dayofyear
; from_unixtime
,
from_unixtime
;
from_utc_timestamp
,
from_utc_timestamp
; hour
,
hour
; last_day
,
last_day
; minute
,
minute
; month
,
month
; next_day
,
next_day
; quarter
,
quarter
; second
,
second
; to_date
,
to_date
; to_utc_timestamp
,
to_utc_timestamp
;
unix_timestamp
,
unix_timestamp
,
unix_timestamp
,
unix_timestamp
; weekofyear
,
weekofyear
; year
,
year
## Not run: months_between(df$c, x)