WPINC_date.php Notes - WordPress-Thinstall/wordpress-develop GitHub Wiki

interface DateArchiveInterface {
    public function sanitize_query( $queries, $parent_query = null );
    public function get_compare( $query );
    public function validate_date_values( $date_query = array() );
    public function validate_column( $column );
    public function get_sql();
    public function build_value( $compare, $value );
    public function build_mysql_datetime( $datetime, $default_to_max = false );
    public function build_time_query( $column, $compare, $hour = null, $minute = null, $second = null );
}

Note The real class needs re-factoring, there are a number of internal protected methods that would be more easily testable using an injected object to absorb responsibility for building SQL allowing this interface to focus on building input data to pass.