next_day {SparkR}R Documentation

next_day

Description

Given a date column, returns the first date which is later than the value of the date column that is on the specified day of the week.

Usage

## S4 method for signature 'Column,character'
next_day(y, x)

next_day(y, x)

Details

For example, next_day('2015-07-27', "Sunday") returns 2015-08-02 because that is the first Sunday after 2015-07-27.

Day of the week parameter is case insensitive, and accepts: "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun".

See Also

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; months_between, months_between; month, month; 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


[Package SparkR version 1.5.1 Index]