class_docstr: Represents a tensor of dates.
class_docstr_tok: ["Represents","a","tensor","of","dates","."]
docstr: Computes the number of days in each period.
  
  Args:
    period_tensor: A PeriodTensor object broadcastable to the shape of "self".
  
  Returns:
    An int32 tensor with numbers of days each period takes.
  
  #### Example
  
  ```python
  dates = tff.datetime.dates_from_tuples([(2020, 2, 25), (2020, 3, 2)])
  dates.period_length_in_days(month())  # [29, 31]
  
  periods = tff.datetime.months([1, 2])
  dates.period_length_in_days(periods)  # [29, 61]
  ```
code: def period_length_in_days(self, period_tensor):
      """Computes the number of days in each period.
  
      Args:
        period_tensor: A PeriodTensor object broadcastable to the shape of "self".
  
      Returns:
        An int32 tensor with numbers of days each period takes.
  
      #### Example
  
      ```python
      dates = tff.datetime.dates_from_tuples([(2020, 2, 25), (2020, 3, 2)])
      dates.period_length_in_days(month())  # [29, 31]
  
      periods = tff.datetime.months([1, 2])
      dates.period_length_in_days(periods)  # [29, 61]
      ```
      """
      return (self + period_tensor).ordinal() - self._ordinals
  
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 10 for calling the DateTensor obj's underlying member method code with example usage: obj.period_length_in_days(period_tensor) and returns: unknown