def decimal_day_to_day_hour_min_sec(<EOL>self,<EOL>daysFloat):
self.log.info(<EOL>'<STR_LIT>')<EOL>daysInt = int(daysFloat)<EOL>hoursFloat = (daysFloat - daysInt) * <NUM_LIT><EOL>hoursInt = int(hoursFloat)<EOL>minsFloat = (hoursFloat - hoursInt) * <NUM_LIT><EOL>minsInt = int(minsFloat)<EOL>secFloat = (minsFloat - minsInt) * <NUM_LIT><EOL>strday = repr(daysFloat)<EOL>if "<STR_LIT:.>" not in strday:<EOL><INDENT>precisionUnit = "<STR_LIT>"<EOL>precision = <NUM_LIT:0><EOL>hoursInt = None<EOL>minsInt = None<EOL>secFloat = None<EOL><DEDENT>else:<EOL><INDENT>lenDec = len(strday.split("<STR_LIT:.>")[-<NUM_LIT:1>])<EOL>if lenDec < <NUM_LIT:2>:<EOL><INDENT>precisionUnit = "<STR_LIT>"<EOL>precision = <NUM_LIT:0><EOL>hoursInt = None<EOL>minsInt = None<EOL>secFloat = None<EOL><DEDENT>elif lenDec < <NUM_LIT:3>:<EOL><INDENT>precisionUnit = "<STR_LIT>"<EOL>precision = <NUM_LIT:0><EOL>minsInt = None<EOL>secFloat = None<EOL><DEDENT>elif lenDec < <NUM_LIT:5>:<EOL><INDENT>precisionUnit = "<STR_LIT>"<EOL>precision = <NUM_LIT:0><EOL>secFloat = None<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>secFloat = "<STR_LIT>" % (precision, secFloat)<EOL><DEDENT><DEDENT>self.log.info(<EOL>'<STR_LIT>')<EOL>return daysInt, hoursInt, minsInt, secFloat<EOL>
*Convert a day from decimal format to hours mins and sec*

        Precision should be respected. 

        **Key Arguments:**
            - ``daysFloat`` -- the day as a decimal.

        **Return:**
            - ``daysInt`` -- day as an integer
            - ``hoursInt`` -- hour as an integer (None if input precsion too low)
            - ``minsInt`` -- mins as an integer (None if input precsion too low)
            - ``secFloat`` -- secs as a float (None if input precsion too low)

        **Usage:**
            ..  todo::

                - replace `decimal_day_to_day_hour_min_sec` in all other code

            .. code-block:: python 

                from astrocalc.times import conversions
                converter = conversions(
                    log=log
                )
                daysInt, hoursInt, minsInt, secFloat = converter.decimal_day_to_day_hour_min_sec(
                    daysFloat=24.2453
                )
                print daysInt, hoursInt, minsInt, secFloat

                # OUTPUT: 24, 5, 53, None

                daysInt, hoursInt, minsInt, secFloat = converter.decimal_day_to_day_hour_min_sec(
                    daysFloat=24.1232435454
                )
                print "%(daysInt)s days, %(hoursInt)s hours, %(minsInt)s mins, %(secFloat)s sec" % locals()

                # OUTPUT: 24 days, 2 hours, 57 mins, 28.242 sec