neosqlite.collection.datetime_utils module

Shared utility module for datetime-related functionality.

This module provides common datetime patterns and utility functions to avoid code duplication across multiple modules.

neosqlite.collection.datetime_utils.is_datetime_value(value: Any) bool[source]

Check if a value is a datetime object or datetime string.

Parameters:

value – Value to check

Returns:

True if value is datetime-related, False otherwise

neosqlite.collection.datetime_utils.is_datetime_regex(pattern: str) bool[source]

Check if a regex pattern is likely to be for datetime matching.

Parameters:

pattern – Regex pattern string

Returns:

True if pattern is likely datetime-related, False otherwise