Learn R Programming

RObsDat (version 16.03)

chr2date: Internal: Convert character to date object and guess time zone

Description

Makes sure, character strings are converted to date objects

Usage

chr2date(string, tz) guess.tz(tz) tz2offset(tz)

Arguments

string
The string containing the information about the date.
tz
The time zone

Value

A POSIXct object with the date information

Details

What should be here?

guess.tz returns the correct string representation of tz that can be understood by 'strptime'.

tz2offset returns the time difference in hours to GMT.

Examples

Run this code
#see code

Run the code above in your browser using DataLab