Skipped Tracks Analysis Utility Functions

This module provides specialized utility functions for analyzing, processing, and formatting skipped track data throughout the application. These utilities handle the complex calculations and data transformations required for skip pattern analysis and library management.

Core capabilities:

  • Timestamp parsing and normalization
  • Skip frequency analysis within configurable timeframes
  • Ratio calculations for skip patterns
  • Sorting and comparison functions for data visualization
  • Date formatting for consistent UI presentation
  • Threshold-based removal suggestion algorithms

These utilities maintain consistency in how skip data is processed across multiple components and views, ensuring reliable analysis results.

Functions

parseTimestamp
getRecentSkipCount
shouldSuggestRemoval
calculateSkipRatio
getMostRecentTimestamp
formatDate
sortBySkipCount