Skip to content

Conversation

@owdax
Copy link
Owner

@owdax owdax commented Jan 21, 2025

Description

This PR introduces comprehensive Time and TimeZone utilities to SwiftDevKit, providing developers with robust tools for handling time-related operations across different time zones. The implementation includes thorough testing and documentation.

Key Features Added:

  1. Time Zone Conversion

    • Convert dates between different time zones
    • Proper handling of DST transitions
    • Support for all standard time zones
  2. Date Formatting

    • Multiple format styles (date only, time only, full, short, long)
    • Locale-aware formatting
    • Time zone specific formatting
  3. Time Zone Management

    • Access to most available time zones
    • Curated list of commonly used time zones
    • GMT offset calculations
    • DST transition detection and handling

Fixes #N/A (no specific issue ticket)

Type of change

  • New feature (non-breaking change which adds functionality)
  • Documentation update

Checklist:

  • My code follows the style guidelines of SwiftDevKit
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

The implementation includes comprehensive test coverage for all features, including edge cases like DST transitions and various time zone scenarios. Documentation includes clear examples and use cases for each functionality.

@owdax owdax added the enhancement New feature or request label Jan 21, 2025
@owdax owdax self-assigned this Jan 21, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 21, 2025

@owdax owdax marked this pull request as ready for review January 21, 2025 21:21
Copy link
Owner Author

@owdax owdax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's update docc later on

@owdax owdax force-pushed the feature/time-utilities branch from 556b8d1 to 5fc7e5b Compare January 21, 2025 21:30
@owdax owdax merged commit 218e273 into master Jan 21, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants