Skip to contents

Small function to convert Matlab datenum to POSIX time

Usage

matlab_to_posix(x, timez = "UTC")

Arguments

x

column with Matlab datenum

timez

time zone to be used

Value

A vector of POSIXct

Examples

matlab_to_posix(c(737182.4))
#> [1] "2018-05-02 09:36:00 UTC"