time_jd function

Convert time string to Julian Day

Convert time string to Julian Day

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

time_jd(time)

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.

Returns

Character value, Julian Day corresponding to the input date.

Details

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

Examples

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

Author(s)

Michael Dietze

  • Maintainer: Michael Dietze
  • License: GPL-3
  • Last published: 2025-03-25

Useful links