Skip to contents

Simple wrapper around Sys.time to get a time stamp in unified timezone and format.

Usage

time_stamp(form = "%Y-%m-%d %H:%M:%S %Z", timezone = "UTC")

Arguments

form

Format to be used for the time stamp. See also base::strptime() for the possible formats.

timezone

Timezone to use.

Value

A character string with time stamp in it.

Examples

time_stamp()
#> [1] "2024-10-29 14:42:48 UTC"