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

Description Usage Arguments See Also Examples

View source: R/dates.R

Description

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

Usage

1
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

1
2
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

skyscapeR documentation built on Oct. 30, 2021, 1:06 a.m.