class_docstr: Contains methods to parse the input offset to different formats.
  
  Args:
      now (datetime):
          The point of time that the parser should calculate offset against.
class_docstr_tok: ["Contains","methods","to","parse","the","input","offset","to","different","formats",".","Args",":","now","(","datetime",")",":","The","point","of","time","that","the","parser","should","calculate","offset","against","."]
code: def __init__(self, now: Union[datetime, str] = None) -> None:
      if now is None:
          self.now = datetime.now(timezone.utc)
      elif isinstance(now, datetime):
          self.now = now
      else:
          self.now = datetime.strptime(
              now, EXECUTION_TIME_PIPELINE_PARAMETER_FORMAT
          )
  
file_path: sagemaker-python-sdk/src/sagemaker/feature_store/feature_processor/_input_offset_parser.py
imports: from __future__ import absolute_import
  import re
  from typing import Optional, Tuple, Union
  from datetime import datetime, timezone
  from dateutil.relativedelta import relativedelta
  from sagemaker.feature_store.feature_processor._constants import EXECUTION_TIME_PIPELINE_PARAMETER_FORMAT
label_desc: Use image node_id 1 to create a new InputOffsetParser object  with example: obj = InputOffsetParser(now)