def mjd_to_ut_datetime(<EOL>self,<EOL>mjd,<EOL>sqlDate=False,<EOL>datetimeObject=False):
self.log.info('<STR_LIT>')<EOL>from datetime import datetime<EOL>unixtime = (float(mjd) + <NUM_LIT> - <NUM_LIT>) * <NUM_LIT><EOL>theDate = datetime.utcfromtimestamp(unixtime)<EOL>if datetimeObject == False:<EOL><INDENT>strmjd = repr(mjd)<EOL>if "<STR_LIT:.>" not in strmjd:<EOL><INDENT>precisionUnit = "<STR_LIT>"<EOL>precision = <NUM_LIT:0><EOL>utDatetime = theDate.strftime("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>lenDec = len(strmjd.split("<STR_LIT:.>")[-<NUM_LIT:1>])<EOL>if lenDec < <NUM_LIT:2>:<EOL><INDENT>precisionUnit = "<STR_LIT>"<EOL>precision = <NUM_LIT:0><EOL>utDatetime = theDate.strftime("<STR_LIT>")<EOL><DEDENT>elif lenDec < <NUM_LIT:3>:<EOL><INDENT>precisionUnit = "<STR_LIT>"<EOL>precision = <NUM_LIT:0><EOL>utDatetime = theDate.strftime("<STR_LIT>")<EOL><DEDENT>elif lenDec < <NUM_LIT:5>:<EOL><INDENT>precisionUnit = "<STR_LIT>"<EOL>precision = <NUM_LIT:0><EOL>utDatetime = theDate.strftime("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>precisionUnit = "<STR_LIT>"<EOL>precision = lenDec - <NUM_LIT:5><EOL>if precision > <NUM_LIT:3>:<EOL><INDENT>precision = <NUM_LIT:3><EOL><DEDENT>secs = float(theDate.strftime("<STR_LIT>"))<EOL>secs = "<STR_LIT>" % (precision, secs)<EOL>utDatetime = theDate.strftime("<STR_LIT>") + secs<EOL><DEDENT><DEDENT>if sqlDate:<EOL><INDENT>utDatetime = utDatetime.replace("<STR_LIT:U+0020>", "<STR_LIT:T>")<EOL><DEDENT><DEDENT>else:<EOL><INDENT>utDatetime = theDate<EOL><DEDENT>self.log.info('<STR_LIT>')<EOL>return utDatetime<EOL>
*mjd to ut datetime*

        Precision should be respected. 

        **Key Arguments:**
            - ``mjd`` -- time in MJD.
            - ``sqlDate`` -- add a 'T' between date and time instead of space
            - ``datetimeObject`` -- return a datetime object instead of a string. Default *False*

        .. todo::

            - replace getDateFromMJD in all code
            - replace getSQLDateFromMJD in all code

        **Return:**
            - ``utDatetime`` - the UT datetime in string format

        **Usage:**

            .. code-block:: python 

                from astrocalc.times import conversions
                converter = conversions(
                    log=log
                )
                utDate = converter.mjd_to_ut_datetime(
                    mjd=57504.61577585013
                )
                print utDate

                # OUT: 2016-04-26 14:46:43.033

                utDate = converter.mjd_to_ut_datetime(
                    mjd=57504.61577585013,
                    sqlDate=True
                )
                print utDate

                # OUT: 2016-04-26T14:46:43.033