class_docstr: Represents a tensor of dates.
class_docstr_tok: ["Represents","a","tensor","of","dates","."]
docstr: Subtracts a tensor of periods.
  
  When subtracting months or years, the resulting day of the month is
  decreased to the largest valid value if necessary. E.g. 31.03.2020 - 1 month
  = 29.02.2020, 29.02.2020 - 1 year = 28.02.2019.
  
  Args:
    period_tensor: a PeriodTensor object broadcastable to the shape of "self".
  
  Returns:
    The new instance of DateTensor.
code: def __sub__(self, period_tensor):
      """Subtracts a tensor of periods.
  
      When subtracting months or years, the resulting day of the month is
      decreased to the largest valid value if necessary. E.g. 31.03.2020 - 1 month
      = 29.02.2020, 29.02.2020 - 1 year = 28.02.2019.
  
      Args:
        period_tensor: a PeriodTensor object broadcastable to the shape of "self".
  
      Returns:
        The new instance of DateTensor.
      """
      return self + periods.PeriodTensor(
          -period_tensor.quantity(), period_tensor.period_type()
      )
  
imports: import collections.abc
  import datetime
  import numpy
  import tensorflow.compat.v2
  from tf_quant_finance.datetime import constants
  from tf_quant_finance.datetime import date_utils
  from tf_quant_finance.datetime import periods
  from tf_quant_finance.datetime import tensor_wrapper
label_desc: Use image node_id 16 for calling the DateTensor obj's underlying member method code with example usage: obj.__sub__(period_tensor) and returns: unknown