Learn R Programming

facebook.S4 (version 1.1.0)

formatFbDate: Convert a Facebook datetime string into a valid R datetime

Description

facebook.formatFbDate converts the date-time string returned by Facebook in a valid POSIX format.

Usage

formatFbDate(datestring, format = "datetime")

Arguments

datestring

The date to convert in the character format used by Facebook.

format

Set to "datetime" to convert into a POSIX value or "date" to convert into a Date. Any other values will make the function returns NULL.