jjanuszczak / freshdeskr

R client for Freshdesk
MIT License
2 stars 0 forks source link

Identify date fields by pattern matching #32

Closed jjanuszczak closed 6 years ago

jjanuszczak commented 6 years ago

As a user I want date fields to be put into a proper data type (e.g. POSIXlt) so that they are easier to deal with in subsequent analysis.

Currently, this conversion is done by passing the, for example, tickets method a list of date fields that might be expected in the content returned by the API call. If may be easier and more robust to simply identify possible date fields by pattern matching the character fields returned by the API, e.g. YYYY-MM-DDThh:mm:ssZ and converting to date type.

jjanuszczak commented 6 years ago

Current lookup of field names is probably best.