Description Usage Arguments Value Examples
This function accesses the /timeleft/period endpoint of the Christmas Countdown API. The specific period is supplied by the user as a function argument.
1 | period_left(period, timezone = NULL)
|
period |
"months", "weeks", "sleeps", "days", "hours", "minutes", or "seconds" |
timezone |
A UTC offset in string form. Defaults to NULL |
An integer corresponding to the amount of periods left until Christmas
1 2 | period_left("days", timezone = "UTC-7")
period_left("weeks")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.