emr_time2date {naryn}R Documentation

Convert from internal time to year, month, day, hour

Description

Convert from internal time to year, month, day, hour

Usage

emr_time2date(time)

Arguments

time

vector of times in internal format

Value

a data frame with columns named 'year', 'month', 'day' and 'hour'

Examples


emr_db.init_examples()

# 30 January, 1938, 6:00 - birthday of Islam Karimov
t1 <- emr_date2time(30, 1, 1938, 6)
# September 2, 2016, 7:00 - death of Islam Karimov
t2 <- emr_date2time(2, 9, 2016, 7)
emr_time2date(c(t1, t2))

[Package naryn version 2.6.26 Index]