get_count_countdown_moments: Construst a count/countdown between two moments

View source: R/get_count_countdown_moments.R

get_count_countdown_momentsR Documentation

Construst a count/countdown between two moments

Description

Construst a count/countdown between two moments

Usage

get_count_countdown_moments(
  start_moment,
  end_moment,
  text,
  time_zone = Sys.timezone(),
  language = "en"
)

Arguments

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"

Value

Count/countdown. Character.

Examples

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")

ThinkR-open/wedding documentation built on April 4, 2022, 5:11 a.m.