View source: R/get_timeframe.R
get.timeframe | R Documentation |
Given two dates, it returns the differences in days, weeks, months, and years. Each month is estimated to be 30 day long.
get.timeframe(date1, date2, format1 = "%m/%d/%Y", format2 = "%m/%d/%Y")
date1 |
first date (string) |
date2 |
second date (string) |
format1 |
format of date1 |
format2 |
format of date2 |
difference between the dates
Alessia Visconti
get.timeframe("01/01/1980", "31/12/2019", "%d/%m/%Y", "%d/%m/%Y")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.