class_docstr: Represents a tensor of dates.
class_docstr_tok: ["Represents","a","tensor","of","dates","."]
docstr: Returns an int32 tensor of weekdays.
  
  The result is zero-based according to Python datetime convention, i.e.
  Monday is "0".
  
  #### Example
  
  ```python
  dates = tff.datetime.dates_from_tuples([(2019, 1, 25), (2020, 3, 2)])
  dates.day_of_week()  # [5, 1]
  ```
code: def day_of_week(self):
      """Returns an int32 tensor of weekdays.
  
      The result is zero-based according to Python datetime convention, i.e.
      Monday is "0".
  
      #### Example
  
      ```python
      dates = tff.datetime.dates_from_tuples([(2019, 1, 25), (2020, 3, 2)])
      dates.day_of_week()  # [5, 1]
      ```
      """
      # 1 Jan 0001 was Monday according to the proleptic Gregorian calendar.
      # So, 1 Jan 0001 has ordinal 1, and the weekday is 0.
      return (self._ordinals - 1) % 7
  
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 3 for calling the DateTensor obj's underlying member method code with example usage: obj.day_of_week() and returns: unknown