time2jd: Converts date and time (in any timezone) to Julian date

Description Usage Arguments See Also Examples

View source: R/dates.R

Description

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

Usage

1
time2jd(time, timezone, calendar, verbose = F)

Arguments

time

String containing the date and time in the format "YYYY/MM/DD HH:MM:SS". BCE dates should use negative sign. Use timestring if needed.

timezone

(Optional) Timezone of input 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 the system timezone

calendar

(Optional) Calendar used in parameter time. G for gregorian and J for julian. Defaults to Gregorian.

verbose

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

See Also

swe_julday, as.POSIXlt, timezones, timestring

Examples

1
2
# Julian date at noon GMT on Christmas day 2018
time2jd('2018/12/25 12:00:00', 'GMT')

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