Jtim: Decimal Julian Day

JtimR Documentation

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 documentation built on Aug. 19, 2023, 5:07 p.m.