Learn R Programming

ethiodate (version 0.3.1)

eth_parse_date: 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"))

Value

a vector of an'ethdate' object.

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.

Author

Gutama Girja Urago

Details

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

See Also

eth_date() eth_make_date()

Examples

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

Run the code above in your browser using DataLab