Learn R Programming

eseis (version 0.8.0)

time_jd: Convert time string to Julian Day

Description

This function converts a POSIXct-like date into the corresponding Julian Day number and returns it as string format.

Usage

time_jd(time)

Value

Character value, Julian Day corresponding to the input date.

Arguments

time

Character value, date to convert to Julian Day. If no POSIXct format is provided, the function will try to convert the input data to POSIXct, assuming the time zone is UTC.

Author

Michael Dietze

Details

There is also a more powerful function to convert between different time formats, see time_convert for details.

Examples

Run this code

time_jd(time = "2020-05-01")

Run the code above in your browser using DataLab