Skip to contents

Get datetime as a string in the form "%Y%m%d%H%M". Defaults to returning the current datetime.

Usage

get_datetime_string(x = lubridate::now())

Arguments

x

A vector of POSIXt, numeric, or character objects. Defaults to the current time.

Value

The datetime as a string in the form "%Y%m%d%H%M".

Examples

get_datetime_string()
#> [1] "202601212248"