def to_julian_date(self):
<EOL>year = np.asarray(self.year)<EOL>month = np.asarray(self.month)<EOL>day = np.asarray(self.day)<EOL>testarr = month < <NUM_LIT:3><EOL>year[testarr] -= <NUM_LIT:1><EOL>month[testarr] += <NUM_LIT:12><EOL>return (day +<EOL>np.fix((<NUM_LIT> * month - <NUM_LIT>) / <NUM_LIT:5>) +<EOL><NUM_LIT> * year +<EOL>np.floor(year / <NUM_LIT:4>) -<EOL>np.floor(year / <NUM_LIT:100>) +<EOL>np.floor(year / <NUM_LIT>) +<EOL><NUM_LIT> +<EOL>(self.hour +<EOL>self.minute / <NUM_LIT> +<EOL>self.second / <NUM_LIT> +<EOL>self.microsecond / <NUM_LIT> / <NUM_LIT> +<EOL>self.nanosecond / <NUM_LIT> / <NUM_LIT><EOL>) / <NUM_LIT>)<EOL>
Convert Datetime Array to float64 ndarray of Julian Dates.
0 Julian date is noon January 1, 4713 BC.
http://en.wikipedia.org/wiki/Julian_day