Code
diff_time(x, y)
Output
Time differences in seconds
[1] 8640000
Code
diff_time_days(x, y)
Output
Time differences in days
[1] 100
Code
diff_time_dyears(x, y)
Output
Time differences in years (365 days)
[1] 0.2739726
Code
diff_time_hours(x, y)
Output
Time differences in hours
[1] 2400
Code
diff_time_mins(x, y)
Output
Time differences in minutes
[1] 144000
Code
diff_time_months(x, y)
Output
Time differences in months (30 days)
[1] 3.333333
Code
diff_time_myears(x, y)
Output
Time differences in years (30-day months)
[1] 0.2777778
Code
diff_time_secs(x, y)
Output
Time differences in seconds
[1] 8640000
Code
diff_time_weeks(x, y)
Output
Time differences in weeks
[1] 14.28571
Code
diff_time_wyears(x, y)
Output
Time differences in years (52 weeks)
[1] 0.2747253
Code
diff_time_years(x, y)
Output
Time differences in years (365 days)
[1] 0.2739726
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.