This function round a timestamp ()

format_timestamp(x)

Arguments

x

The timestamp. See detail section for more information.

Value

a POSIXct object with rounded double value.

Details

The accepted formats for the argument x are:

  • character objects;

  • Date objects;

  • numeric (integer or double);

  • date/times object (classes POSIXct and POSIXlt)

Examples

IssueTrackeR:::format_timestamp(1743694674.9)
#> [1] "2025-04-03 15:37:54 UTC"
IssueTrackeR:::format_timestamp(Sys.Date())
#> [1] "2026-10-22 UTC"