eth_parse_date {ethiodate}R Documentation

Parse Ethiopian Date

Description

Parse Ethiopian date from character vector that has a non-digit separator.

Usage

eth_parse_date(x, format = "%Y-%m-%d", lang = c("lat", "amh", "en"))

Arguments

x

a character vector.

format

a format in in which x is composed. See strptime.

lang

a language in which month names are written, if included in x. Use "lat" for Amharic month names written in Latin alphabets, "amh" for month names written in Amharic alphabets, and "en" for English month names.

Details

x must include a non-digit separator and exactly three components of the date (year, month, and day).

Value

a vector of an'ethdate' object.

Author(s)

Gutama Girja Urago

See Also

eth_date() eth_make_date()

Examples

eth_parse_date("2017-01-01")
s <- c("01/01/2013", "06/13/2011")
eth_parse_date(s, format = "%d/%m/%Y")

[Package ethiodate version 0.2.0 Index]