Learn R Programming

RSEIS (version 4.2-4)

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)

Value

Julian day

Arguments

jj

Julian day

hr

Hour

mi

Minute

sec

Second

yr

year, default = NULL

origyr

default = NULL

or

j

list of the above

Author

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

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.

See Also

secdif

Examples

Run this code
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)




Run the code above in your browser using DataLab