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-11-20 08:10:39 UTC"