addTimeStamp: Adds a TimeStamp element to a node

Description Usage Arguments Value Author(s) References

Description

This creates a TimeStamp XML element and adds it to the parent, if specified.

Usage

1
addTimeStamp(when, parent = NULL, format = "%Y-%m-%dT%H:%M:%S%Z")

Arguments

when

the time. This can be a POSIXct or POSIXlt object, a Date or a string that is already in the appropriate format - the dateTime format specified in the general XML schema.

parent

an XML internal node to which to add the new TimeStamp node

format

the format string used by strptime.

Value

the XMLInternalNode object

Author(s)

Duncan Temple Lang

References

http://code.google.com/apis/kml/documentation/kmlreference.html


duncantl/RKML documentation built on May 15, 2019, 5:31 p.m.