{"id":23065,"library":"dedupe-variable-datetime","title":"dedupe-variable-datetime","description":"DateTime variable type extension for the dedupe library, used for fuzzy matching datetime fields. Current version 2.0.0. Updated irregularly; last release 2023.","status":"active","version":"2.0.0","language":"python","source_language":"en","source_url":"https://github.com/datamade/dedupe-variable-datetime","tags":["dedupe","datetime","data-matching","record-linkage"],"install":[{"cmd":"pip install dedupe-variable-datetime","lang":"bash","label":"PyPI"}],"dependencies":[{"reason":"Core deduplication library required","package":"dedupe","optional":false},{"reason":"May be required for Python 2 compatibility","package":"future","optional":true}],"imports":[{"note":"Direct import from the package's submodule","symbol":"DateTimeType","correct":"from dedupe.variables.datetime import DateTimeType"}],"quickstart":{"code":"from dedupe import Datamodel\nfrom dedupe.variables.datetime import DateTimeType\n\n# Define fields including a datetime field\nfields = [\n    {'field': 'date', 'type': 'DateTime'},\n    {'field': 'name', 'type': 'String'}\n]\n\ndatamodel = Datamodel(fields)\nprint('Datetime variable loaded successfully')","lang":"python","description":"Minimal example to verify installation and import of DateTimeType."},"warnings":[{"fix":"Preprocess datetime fields to a consistent format before passing to dedupe.","message":"DateTimeType expects date strings in ISO 8601 format (YYYY-MM-DD) or similar parseable formats; inconsistent formats may cause errors.","severity":"gotcha","affected_versions":">=2.0.0"},{"fix":"Use dedupe v2.x and ensure dedupe-variable-datetime is updated to 2.0.0.","message":"The package may rely on old-style dedupe API; check compatibility with dedupe >=2.0.","severity":"deprecated","affected_versions":">=2.0.0"},{"fix":"Convert all datetimes to UTC or naive before comparison.","message":"Time zones are not handled; naive datetimes assumed. Potential mismatch when comparing across time zones.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install dedupe-variable-datetime: pip install dedupe-variable-datetime, then import using from dedupe.variables.datetime import DateTimeType.","cause":"Attempting to import from wrong path or package not installed with matching version.","error":"ModuleNotFoundError: No module named 'dedupe.variables.datetime'"},{"fix":"Define fields in the Datamodel dictionary with 'type': 'DateTime', not by instantiating DateTimeType directly.","cause":"Using incorrect constructor signature; DateTimeType may not accept field as a direct argument.","error":"TypeError: __init__() got an unexpected keyword argument 'field'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}