@value_converter
def inputdatetime(to_convert):
    'Converts string to datetime or returns passed object.\n\n    Args:\n        to_convert (string or datetime):\n            datetime represented as string of the format YYYYMMDDTHHMMZ\n\n    Returns:\n        (datetime): datetime object\n\n    '
    from improver.utilities.temporal import cycletime_to_datetime
    return maybe_coerce_with(cycletime_to_datetime, to_convert)
Converts string to datetime or returns passed object.

Args:
    to_convert (string or datetime):
        datetime represented as string of the format YYYYMMDDTHHMMZ

Returns:
    (datetime): datetime object
@value_converter
def inputdatetime(to_convert):
    'Converts string to datetime or returns passed object.\n\n    Args:\n        to_convert (string or datetime):\n            datetime represented as string of the format YYYYMMDDTHHMMZ\n\n    Returns:\n        (datetime): datetime object\n\n    '
    from improver.utilities.temporal import cycletime_to_datetime
    return maybe_coerce_with(cycletime_to_datetime, to_convert)