save_points_intl 1.0.1 copy "save_points_intl: ^1.0.1" to clipboard
save_points_intl: ^1.0.1 copied to clipboard

A comprehensive, modular, zero-dependency date/time library for Flutter with 7 languages, 50+ functions, and smart formatting.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.1 - 2025-12-01 #

Fixed #

  • Added example app in example/ directory to meet pub.dev requirements
  • Removed lib/main.dart to fix documentation warnings
  • Improved example documentation with comprehensive usage demonstrations

1.0.0 - 2025-12-01 #

Added #

Core Features

  • Date Formatting - 14+ formatting functions with multi-language support

    • Short, medium, long, and full date formats
    • Custom pattern support (yyyy-MM-dd, etc.)
    • ISO 8601 formatting
    • Date range formatting
    • File-safe formatting
    • Ordinal date formatting (1st, 2nd, 3rd)
  • Time Formatting - 8+ time formatting functions

    • 12-hour and 24-hour formats
    • With/without seconds support
    • Millisecond precision
    • Combined date/time formats
  • Date Comparisons - 13+ comparison utilities

    • Same day, week, month, year checks
    • Today, yesterday, tomorrow checks
    • Past/future checks
    • Weekend/weekday checks
    • Date range checks with inclusive/exclusive options
  • Date Calculations - 20+ calculation functions

    • Start/end of day, week, month, year, quarter
    • Business days calculations (add, subtract, count)
    • Age calculation from birthdate
    • Month arithmetic with edge case handling
    • Leap year detection
    • Week number calculation
    • Quarter calculations
    • Timezone utilities (UTC conversion, offset formatting)
  • Relative Time - 5+ relative time functions

    • Past relative time ("2 hours ago")
    • Future relative time ("in 3 days")
    • Short format ("2h", "3d")
    • Duration formatting
    • Countdown/time remaining
  • Smart Features

    • Context-aware formatting
    • Flexible date parsing
    • Date validation
    • Custom pattern support

Internationalization

  • 7 Languages Supported
    • English (en, en_US, en_GB)
    • Spanish (es, es_ES)
    • French (fr, fr_FR)
    • German (de, de_DE)
    • Arabic (ar, ar_SA) with RTL support
    • Japanese (ja, ja_JP)
    • Chinese (zh, zh_CN)

Architecture

  • Modular Design - Import only what you need

    • date_formatters.dart - Date formatting
    • time_formatters.dart - Time formatting
    • date_comparisons.dart - Comparisons
    • date_calculations.dart - Calculations
    • relative_time.dart - Relative time
    • date_parsers.dart - Parsing
    • smart_formatters.dart - Smart formatting
    • constants.dart - Translations and constants
    • datetime.dart - Barrel file (exports all)
  • Zero Dependencies - Pure Dart implementation

  • Tree-shakable - Unused code eliminated in builds

  • Type-safe - Full null safety support

  • Well-documented - Comprehensive inline documentation

Documentation

  • Comprehensive README with 850+ lines
  • EXAMPLES.md with 1,286 lines of usage examples
  • 9 real-world use case examples
  • Quick start guide
  • Migration guide
  • API reference for 50+ functions
  • FAQ section
  • Troubleshooting guide

Testing

  • Example app demonstrating all features
  • Unit test coverage for core functions
  • Static analysis passing
  • Production-ready code quality

Features Summary #

  • 50+ utility functions
  • 7 languages with proper localization
  • Zero external dependencies
  • Modular architecture
  • Comprehensive documentation
  • Real-world examples
  • Production-ready

Performance #

  • Lightweight (<50KB impact)
  • Fast execution (<1ms for most operations)
  • Minimal memory footprint
  • No runtime overhead
2
likes
0
points
158
downloads

Publisher

unverified uploader

Weekly Downloads

A comprehensive, modular, zero-dependency date/time library for Flutter with 7 languages, 50+ functions, and smart formatting.

Repository (GitHub)
View/report issues

Topics

#datetime #date-formatting #i18n #localization #utilities

License

unknown (license)

Dependencies

flutter

More

Packages that depend on save_points_intl