Summary about a Sequence of (Text) Timestamps

getTimestampSummary(x, format = NULL, template_index = NULL)

Arguments

x

vector of character representing timestamps

format

format description, such as "%Y-%m-%d %H:%M:%S"

template_index

index in x from which to select a timestamps that is used as a template when looking for an appropriate timestamp format

Examples

x <- kwb.datetime::sequenceOfTimestamps("2019-10-31", "2019-11-01") getTimestampSummary(x)
#> Number of timestamps: 1441 #> Number of duplicated timestamps: 0 #> Timestamp template: 2019-10-31 19:56:00 #> (Determined) Timestamp format: %Y-%m-%d %H:%M:%S #> Number of days involved: 2 #> Range of days involved: 2019-10-31--2019-11-01 #> Number of years involved: 1 #> Years involved: 2019 #> Number of 'switch' days (CET <-> CEST) involved: 0