hsTsInfo: Full Information on Timestamps

Description Usage Arguments Value

View source: R/main.R

Description

different representations of timestamp(s), including POSIXct-objects for local and UTC timezone as well as ISO-8601 compliant (text) timestamp and information if daylight savings time is in effect

Usage

1
hsTsInfo(tstamp, tzone = "", tsep = "T")

Arguments

tstamp

(vector of) timestamp(s), either of POSIXt-type or character

tzone

time zone in which timestamps in tstamp are given. Will only be used if tstamp are not yet of POSIXt-type.

tsep

character used in ISO-8601 text representation to divide date from time

Value

data frame with columns tPosix.local (POSIXct-objects in time zone tzone), tzone (name of time zone), tPosix.UTC (POSIXct-objects in time zone UTC), tChr.ISO (timestamp in ISO-8601 syntax), isdst (1 if daylight savings time is in effect, otherwise 0).


KWB-R/kwb.datetime documentation built on July 9, 2021, 10:28 p.m.