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

View source: R/dates.R

time2jdR Documentation

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

Description

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

Usage

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

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

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