Skip to main content
`Ctrl`+`K`

# pandas.Timestamp.utcnow

classmethod Timestamp.utcnow()

  Return a new Timestamp representing UTC day and time.

  Deprecated since version 3.0.0: `Timestamp.utcnow` is deprecated and will be removed in a future version. Use `Timestamp.now('UTC')` instead.

  See also

  `Timestamp`

    Constructs an arbitrary datetime.

  `Timestamp.now`

    Return the current local date and time, which can be timezone-aware.

  `Timestamp.today`

    Return the current local date and time with timezone information set to None.

  `to_datetime`

    Convert argument to datetime.

  `date_range`

    Return a fixed frequency DatetimeIndex.

  `Timestamp.utctimetuple`

    Return UTC time tuple, compatible with time.localtime().

  Examples

      >>> pd.Timestamp.utcnow()
      Timestamp('2020-11-16 22:50:18.092888+0000', tz='UTC')