Rewrite funcion toJulian() that was using code with Creative Commons "No Commercial" license.
Replaced with implementation from algorithm described in wikipedia.