This function converts a Gregorian-format date to Julian format.
juldate = $GREG2JUL(gregdate)
Parameters
Julian-format date: yy.ddd or yyyy.ddd. The number of digits that are assigned to the year is the same as specified in the Gregorian format, two or four. The day of the year is left-padded with zeros to three characters.
Gregorian-format date: mm/dd/yy or mm/dd/yyyy. The number of digits that are assigned to the year is carried over to the result and must be two or four. The length of the month and day fields is unimportant, except that the date must be valid.
ARG 1 MISSING OR INVALID
INVALID YEAR
INVALID MONTH
INVALID DAY
Example
$GREG2JUL('12/31/99') == '99.366' $GREG2JUL('1/1/2000') == '2000.001'
Copyright © 2014 CA Technologies.
All rights reserved.
|
|