Last data update: 2014.03.03

R: Parses a text string for time information.
text2timesR Documentation

Parses a text string for time information.

Description

This function take a text string and returns any time-specific information that it finds.

Usage

text2times(text, session=getCurlHandle())

Arguments

text

A text string containing possible time information.

session

This is the CURLHandle object giving the structure for the options and that will process the command. For curlMultiPerform, this is an object of class code MultiCURLHandle-class.

Value

A data.frame containing

duration

Length of time in seconds of the recognized event.

start_index

The beginning of the matched string in the original string.

is_relative

Logical value for matched string.

end_index

The end of the matched string in the original string.

time_seconds

The unix timestamp of the event (time since epoch).

matched_string

The string that was used in the processing of the request.

time_string

The time string of the recognized time event.

Author(s)

Ryan Elmore

References

text2times

See Also

curlPerform, getCurlHandle, dynCurlReader

Examples

	## Not run: 
		text <- "02/01/2010, Meeting this Wednesday"
		text2times(text)
	
## End(Not run)

Results