kobo_time_parser: Parses Dates from KoBo Into a More Usable Format

Description Usage Arguments Value Author(s) Examples

Description

The date/time values in KoBo usually get stored in a format like the following: "2015-08-27T13:28:29.000+06:30". These functions process these date/times into more usable formats.

Usage

1
2
3

Arguments

instring

A date/time format coming from KoBo.

timezone

A valid timezone, available in the list available from OlsonNames.

Value

The kobo_time_parser_UTC function returns a POSIXct object, while the kobo_time_parser function returns a formatted character string that can be easily parsed as a date/time object.

Author(s)

Ananda Mahto

Examples

1
2
3
4
5
6
TIME <- "2015-08-27T13:28:29.000+06:30"
kobo_time_parser_UTC(TIME)

kobo_time_parser(TIME)
kobo_time_parser(TIME, timezone = "Asia/Rangoon")
kobo_time_parser(TIME, timezone = "America/Los_Angeles")

karpadev/kobo-for-shinyio documentation built on May 13, 2019, 6:14 p.m.