xmlTime2POSIX: Convert time from xml to POSIX format.

View source: R/utilities.R

xmlTime2POSIXR Documentation

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.


ropensci/cleanEHR documentation built on Aug. 28, 2022, 8:31 p.m.