50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

naryn (version 2.6.30)

emr_time2month: Converts time from internal format to a month

Description

Converts time from internal format to a month.

Usage

emr_time2month(time)

Value

Vector of converted times. NA values in the vector would be returned as NA's.

Arguments

time

vector of times in internal format

Details

This function converts time from internal format to a month in [1, 12] range.

See Also

emr_time2hour, emr_time2dayofmonth, emr_time2year, emr_date2time

Examples

Run this code

emr_db.init_examples()

# 30 January, 1938, 6:00 - birthday of Islam Karimov
t <- emr_date2time(30, 1, 1938, 6)
emr_time2hour(t)
emr_time2dayofmonth(t)
emr_time2month(t)
emr_time2year(t)

Run the code above in your browser using DataLab