Examples

In the year 1996, the returned value for:
FUNCTION DAY-TO-YYYYDDD(85003, 10)
is 1985003.
In the year 2013, the returned value for:
FUNCTION DAY-TO-YYYYDDD(95005,(-10))
is 1995005.