JS2YMDS Name
JS2YMDS Purpose
Convert from "Julian Second" to year, month, day, second.
Category
Calling Sequence
js2ymds, js, y, m, d, s or js2ymds, js, y, m, d, h, mn, s
Inputs
js = "Julian Second". in
Keyword Parameters
Outputs
y,m,d = year, month, day numbers. out
h, mn, s = hour, minute, second into day. out
Common Blocks
Notes
Notes: Julian seconds (not an official unit) serve the
same purpose as Julian Days, interval computations.
The zero point is 0:00 1 Jan 2000, so js < 0 before then.
Julian Seconds are double precision and have a precision
better than 1 millisecond over a span of +/- 1000 years.
A precision warning may point to a call to dt_tm_fromjs.
See also ymds2js, dt_tm_tojs, dt_tm_fromjs, jscheck.
Modification History
R. Sterner, 2 Sep, 1992
R. Sterner, 13 Dec, 1992 --- added data type check.
R. Sterner, 2001 Oct 15 --- Now allows h, m, s.
R. Sterner, 2010 May 04 --- Converted arrays from () to [].
Copyright (C) 1992, Johns Hopkins University/Applied Physics Laboratory
This software may be used, copied, or redistributed as long as it is not
sold and this copyright notice is reproduced on each copy made. This
routine is provided as is without any express or implied warranties
whatsoever. Other limitations apply as described in the file disclaimer.txt.