def datetime_to_djd(time):
if time.tzinfo is None:<EOL><INDENT>time_utc = pytz.utc.localize(time)<EOL><DEDENT>else:<EOL><INDENT>time_utc = time.astimezone(pytz.utc)<EOL><DEDENT>djd_start = pytz.utc.localize(dt.datetime(<NUM_LIT>, <NUM_LIT:12>, <NUM_LIT>, <NUM_LIT:12>))<EOL>djd = (time_utc - djd_start).total_seconds() * <NUM_LIT:1.0>/(<NUM_LIT> * <NUM_LIT> * <NUM_LIT>)<EOL>return djd<EOL>
Converts a datetime to the Dublin Julian Day

Parameters
----------
time : datetime.datetime
    time to convert

Returns
-------
float
    fractional days since 12/31/1899+0000