neuralib.persistence.validator.create_date_validate
- neuralib.persistence.validator.create_date_validate(obj, ref, verbose=True)[source]
test obj is created after ref.
- Parameters:
obj (float | Path | tuple[int, int, int] | date | datetime) – time stamp, file path or date instance
ref (float | Path | tuple[int, int, int] | date | datetime) – time stamp, file path or date instance
verbose
- Returns:
Is obj file newer than ref file?
- Return type:
bool