View source: R/get_count_countdown_moments.R
get_count_countdown_moments | R Documentation |
Construst a count/countdown between two moments
get_count_countdown_moments( start_moment, end_moment, text, time_zone = Sys.timezone(), language = "en" )
start_moment |
Start moment YYYY-MM-DD HH:MM:SS. Character. |
end_moment |
End moment format YYYY-MM-DD HH:MM:SS. Character. |
text |
Text to print at the end of the count/countdown. Character. |
time_zone |
Time zone. Character. Default is Sys.timezone(). |
language |
Language of text. Character. Either "en" or "fr". Default is "en" |
Count/countdown. Character.
get_count_countdown_moments(start_moment = "1998-07-12 21:00:00", end_moment = lubridate::now(tzone = Sys.timezone()), text = "since worldcup 1998") get_count_countdown_moments(start_moment = "2009-10-14 04:00:00", end_moment = "2021-10-02 15:00:00", text = "between the moment they met and the wedding")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.