class_docstr: Transforms datetime features into numeric features.
  
  Parameters
  ----------
  features : list, optional
      A list of datetime features to parse out of dates.
      For a full list of options see the methods inside pandas.Series.dt at https://pandas.pydata.org/docs/reference/api/pandas.Series.html
code: def __init__(
      self,
      features: list = ["year", "month", "day", "dayofweek"],
      **kwargs,
  ):
      super().__init__(**kwargs)
      self.features = features
  
file_path: autogluon/features/src/autogluon/features/generators/datetime.py
imports: import logging
  import numpy
  import pandas
  from pandas import DataFrame
  from autogluon.common.features.types import R_DATETIME, S_DATETIME_AS_OBJECT
  from .abstract import AbstractFeatureGenerator
label_desc: Use image node_id 1 to create a new DatetimeFeatureGenerator object from inherited base classes: AbstractFeatureGenerator with example: obj = DatetimeFeatureGenerator(features)