Skip to contents

Returns the current system time formatted as "YYYY-MM-DD-HH.MM.SS".

Usage

tstmp()

tstmp()

Value

character string of date/time.

A character string of the current date and time.

Examples

tstmp()
#> [1] "2026-05-22-17.53.27"
cat(paste("Last updated:", tstmp()))
#> Last updated: 2026-05-22-17.53.27
tstmp()
#> [1] "2026-05-22-17.53.27"
cat(paste("Last updated:", tstmp()))
#> Last updated: 2026-05-22-17.53.27