jd2time: Converts Julian date and time (in any timezone) to julian...

View source: R/dates.R

jd2timeR Documentation

Converts Julian date and time (in any timezone) to julian date

Description

Converts Julian date and time (in any timezone) to julian date

Usage

jd2time(jd, timezone, calendar, verbose = F)

Arguments

jd

Julian date in numeric format

timezone

(Optional) Desired timezone for output either as a known acronym (e.g. "GMT", "CET") or a string with continent followed by country capital (e.g. "Europe/London"). See timezones for details. Default is system timezone.

calendar

(Optional) Calendar used in parameter time. G for gregorian and J for julian. Only needed if time is a string. Defaults to Gregorian.

verbose

(Optional) Controls whether messages should be displayed. Default is FALSE.

See Also

swe_julday, as.POSIXlt, timezones

Examples

jd <- time2jd('2018/12/25 12:00:00', 'GMT') # Julian date at noon GMT on Christmas day 2018
jd2time(jd, 'CET') # converts julian date to Central European timezone

f-silva-archaeo/skyscapeR documentation built on Sept. 24, 2023, 8:14 p.m.