Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Jtim

Decimal Julian Day


Description

convert JD, HR, MIN SEC to Decimal Julian Day

Usage

Jtim(jj, hr = hr, mi = mi, sec = sec, yr=NULL, origyr=NULL)
JtimL(j)

Arguments

jj

Julian day

hr

Hour

mi

Minute

sec

Second

yr

year, default = NULL

origyr

default = NULL

or

j

list of the above

Details

Using a NULL value for yr gives the fractional julian day in a year. If yr is a legitimate year, and the origyr is provided, then the EPOCH number of days from origyr are added onto the fractional julian day. The default for origyr is 1972 for most of seismology.

If the dates span a new year, sometimes it is useful to use the earliest year as the origyr.

Value

Julian day

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

See Also

secdif

Examples

Jtim( 9 , hr= 14 , mi= 53 ,sec= 16.7807606880087 )

Jtim( 9 , hr= 14 , mi= 53 ,sec= 16.7807606880087, yr=2019, origyr=1972 )


########   or,
j = list(jd=9 , hr= 14 , mi= 53 ,sec= 16.7807606880087)

JtimL(j)

RSEIS

Seismic Time Series Analysis Tools

v3.9-3
GPL (>= 2)
Authors
Jonathan M. Lees [aut, cre], Jake Anderson [ctb], Leonard Lisapaly [ctb], Dave Harris [aut, cph]
Initial release
2020-08-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.