Convert period to given basis
convert_to_given_timeperiod(given_time, basis_time = "day")
converted unit
given time
given basis, default is "day"
convert_to_given_timeperiod("4 weeks")
convert_to_given_timeperiod("a month")
convert_to_given_timeperiod("1 week")
Run the code above in your browser using DataLab