Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

add_readable_time

Create a string with a more readable date/time


Description

Add a nicely-formatted date/time string inside the body of the email with this helper function. We can provide a POSIXct date-time object or use the current date/time/tz (based on the user's locale information at the time of the function call). There are options to specify whether the date, time, and time zone parts are to be included.

Usage

add_readable_time(time = NULL, use_date = TRUE, use_time = TRUE, use_tz = TRUE)

Arguments

time

The POSIXct time to use, and to make more readable for email recipients. If a time is not provided (the default), the current system time will be used.

use_date, use_time, use_tz

Logical value that indicate whether to include the date, time, or time zone components.

Value

A character object that can be placed inside any message component message wherever the function is called.


blastula

Easily Send HTML Email Messages

v0.3.2
MIT + file LICENSE
Authors
Richard Iannone [aut, cre] (<https://orcid.org/0000-0003-3925-190X>), Joe Cheng [aut], Jeroen Ooms [ctb] (<https://orcid.org/0000-0002-4035-0289>), Ted Goas [cph] (cerberus-meta.html)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.