Learn R Programming

cleanEHR (version 0.1)

xmlTime2POSIX: Convert time from xml to POSIX format.

Description

Convert the XML time The XML time format to POSIXct.

Usage

xmlTime2POSIX(xml.time, allow = FALSE)

Arguments

xml.time

character. Time in XML format such as 2014-02-01T03:00:00

allow

logical. Wrong format will be accepted when allow is set to be TRUE and NA will be the return value, otherwise return error. It is useful while dealing with pseudonymous data where the time format is not presented correctly.