Skip to contents

Read Times from Given Lines

Usage

.getValidTimes(mylines, timeformat = "%y-%m-%d %H:%M:%S")

Arguments

mylines

vector of character, each representing a line of a text file

timeformat

time format to be looked for in mylines. Default: "%y-%m-%d %H:%M:%S"

Value

list with elements tstamps (timestamps as text in ISO format) and tstampIndex (contains for each text line the index in

tstamps at which the timestamp corresponding to the line is found.