Use the $GREG2JUL() function to convert a Gregorian-format date to Julian format.
The $GREG2JUL() function has this syntax:
juldate = $GREG2JUL(gregdate)
The $GREG2JUL() function takes these arguments:
|
juldate |
Julian-format date: yy.ddd or yyyy.ddd. The number of digits assigned to the year is the same as specified in the Gregorian format, either two or four. The day of the year is left-padded with zeros to three characters. |
|
gregdate |
Gregorian-format date: mm/dd/yy or mm/dd/yyyy. The number of digits assigned to the year will be carried over to the result and must be either two or four. The length of the month and day fields is unimportant, except that the date must be valid. |
The $GREG2JUL() function produces these return codes:
101 ARG 1 MISSING OR INVALID
121 INVALID YEAR
122 INVALID MONTH
123 INVALID DAY
Example
$GREG2JUL('12/31/99') == '99.366'
$GREG2JUL('1/1/2000') == '2000.001'
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |