tojulian

The tojulian service, calculates the number of days from 01-01 of a given year for the date(s) provided.

Parameters

Name Description Default Choices Required
day list of dates in MM-DD-YYYY format, or MM/DD/YYYY format, or DDDYYYY format. Comma separated. (i.e. 02-26-2004,06-28-2006,07-23-2009) True
output Format type for the response. fsy = from start year. fsy yearly,fsy False
fromyear Year to calculate julian days from (starting at 01-01). Must be set to value greater than 1900. Ignored if output is set to yearly. 2000 False

Example

./tojulian?day=02-26-2004,06-28-2006,07-23-2009&output=fsy

Response

Integer value list of the dates as an integer number of days from 01-01-2000.

	1517,
	2370,
	3491

   

Example

./tojulian?day=02-26-2004,06-28-2006,07-23-2009&fromyear=1990&output=fsy

Response

Integer value list of the dates as an integer number of days from 01-01-1990.

	5169,
	6022,
	7142

   

Example

./tojulian?day=02-26-2004,06-28-2006,07-23-2009&output=yearly

Response

Julian day of the selected year. YYYYDDD.

    2004057,
    2006179,
    2009204