add option to return julian day instead of julian date