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, dates: types.DateTensor) -> types.FloatTensor:
      """Computes the year fraction from the curve's valuation date."""
      return self._day_count_fn(
          start_date=self._valuation_date,
          end_date=dates,
          dtype=self._dtype,
      )
  
imports: from typing import Optional, Tuple
  import tensorflow.compat.v2
  from tf_quant_finance import datetime
  from tf_quant_finance import math
  from tf_quant_finance import rates
  from tf_quant_finance.experimental.pricing_platform.framework.core import curve_types
  from tf_quant_finance.experimental.pricing_platform.framework.core import daycount_conventions
  from tf_quant_finance.experimental.pricing_platform.framework.core import interpolation_method
  from tf_quant_finance.experimental.pricing_platform.framework.core import processed_market_data
  from tf_quant_finance.experimental.pricing_platform.framework.core import types
  from tf_quant_finance.experimental.pricing_platform.framework.market_data import utils
label_desc: Use image node_id 13 for calling the RateCurve obj's underlying member method code with example usage: obj._get_time(dates) and returns: self