class_docstr: Represents an interest rate curve.
docstr: Computes the year fraction from the curve's valuation date.
docstr_tok: ["Computes","the","year","fraction","from","the","curve","'s","valuation","date","."]
code: def _get_time(self, desired_dates):
      """Computes the year fraction from the curve's valuation date."""
  
      return dates.daycount_actual_365_fixed(
          start_date=self._valuation_date,
          end_date=desired_dates,
          dtype=self._dtype,
      )
  
file_path: tf-quant-finance/tf_quant_finance/experimental/instruments/rate_curve.py
imports: import tensorflow.compat.v2
  from tf_quant_finance import datetime
  from tf_quant_finance.math.interpolation import linear
label_desc: Use image node_id 6 for calling the RateCurve obj's underlying member method code with example usage: obj._get_time(desired_dates) and returns: dates