def __init__(self, fraction_of_second=None, time_elements_tuple=None):
if fraction_of_second is not None:<EOL><INDENT>if fraction_of_second < <NUM_LIT:0.0> or fraction_of_second >= <NUM_LIT:1.0>:<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>'.format(<EOL>fraction_of_second))<EOL><DEDENT><DEDENT>super(TimeElementsWithFractionOfSecond, self).__init__(<EOL>time_elements_tuple=time_elements_tuple)<EOL>self._precision = None<EOL>self.fraction_of_second = fraction_of_second<EOL>
Initializes time elements.

        Args:
          fraction_of_second (Optional[decimal.Decimal]): fraction of second, which
              must be a value between 0.0 and 1.0.
          time_elements_tuple (Optional[tuple[int, int, int, int, int, int]]):
              time elements, contains year, month, day of month, hours, minutes and
              seconds.

        Raises:
          ValueError: if the time elements tuple is invalid or fraction of second
              value is out of bounds.