class_docstr: Represents a tensor of dates.
class_docstr_tok: ["Represents","a","tensor","of","dates","."]
docstr: Returns an int32 tensor of ordinals.
  
  Ordinal is the number of days since 1st Jan 0001.
  
  #### Example
  
  ```python
  dates = tff.datetime.dates_from_tuples([(2019, 3, 25), (1, 1, 1)])
  dates.ordinal()  # [737143, 1]
  ```
code: def ordinal(self):
      """Returns an int32 tensor of ordinals.
  
      Ordinal is the number of days since 1st Jan 0001.
  
      #### Example
  
      ```python
      dates = tff.datetime.dates_from_tuples([(2019, 3, 25), (1, 1, 1)])
      dates.ordinal()  # [737143, 1]
      ```
      """
      return 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 6 for calling the DateTensor obj's underlying member method code with example usage: obj.ordinal() and returns: self