time_convert {eseis} | R Documentation |
Convert Julian Day to Date and vice versa
Description
The function converts a Julian Day value to a date, to POSIXct
if a
year is provided, otherwise to POSIXlt
.
Usage
time_convert(input, output, timezone = "UTC", year)
Arguments
input |
|
output |
|
timezone |
|
year |
|
Value
Numeric
vector,
Author(s)
Michael Dietze
Examples
## convert Julian Day 18 to POSIXct
time_convert(input = 18, output = "POSIXct")
## convert Julian Day 18 to yyyy-mm-dd
time_convert(input = 18, output = "yyyy-mm-dd")
## convert yyyy-mm-dd to Julian Day
time_convert(input = "2016-01-18", output = "JD")
## convert a vector of Julian Days to yyyy-mm-dd
time_convert(input = 18:21, output = "yyyy-mm-dd")
[Package eseis version 0.7.3 Index]