matlab2POSIXt {oce}R Documentation

Convert matlab time to POSIX time

Description

Convert matlab time to POSIX time

Usage

matlab2POSIXt(t, tz="UTC")

Arguments

t a Matlab datenum time, defined by the following sentence in the matlab documentation: “where datenum('Jan-1-0000 00:00:00') returns the number 1”.
tz the timezone.

Value

A POSIXct time.

Author(s)

Dan Kelley

Examples

t <- 719529 # in matlab, datenum(1970, 1, 1, 0, 0, 0)
print(matlab2POSIXt(t))

[Package oce version 0.1-80 Index]