jd2time {skyscapeR}R 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

[Package skyscapeR version 1.0.0 Index]