R/getDelayCharTimes.R

Defines functions getDelayCharTimes

Documented in getDelayCharTimes

getDelayCharTimes <-
function(initialTimes, tz = NULL) {
    if (is.null(tz)) {
        
        tz <- KTSEnv$timeZone
    }
    dateFormat <- isTimeAlright(timeCharacter = initialTimes, tz = tz)
    initialTimes <- strptime(initialTimes, format = dateFormat, tz = tz)
    minIniTime <- as.numeric(min(initialTimes))
    maxIniTime <- as.numeric(max(initialTimes))
    c(minIniTime, maxIniTime)
}

Try the KarsTS package in your browser

Any scripts or data that you put into this service are public.

KarsTS documentation built on Jan. 16, 2021, 5:07 p.m.