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-04-10-16.29.45"
cat(paste("Last updated:", tstmp()))
#> Last updated: 2026-04-10-16.29.45
tstmp()
#> [1] "2026-04-10-16.29.45"
cat(paste("Last updated:", tstmp()))
#> Last updated: 2026-04-10-16.29.45