awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
malcommac avatar

malcommac/SwiftDate

0
View on GitHub↗
7,703 星标·774 分支·Swift·MIT·8 次浏览

SwiftDate

SwiftDate is a date manipulation library for the Swift programming language. It provides a toolkit for parsing, validating, and formatting dates, times, and timezones.

The library includes a relative time generator for producing date offsets based on reference points such as tomorrow or next week, and a localized date formatter for transforming date objects into human-readable strings across multiple languages and locales. It also features an ISO8601 date parser to convert standardized date strings from SQL, HTTP, and ISO8601 formats into structured objects, alongside tools for managing timezones across different geographical regions.

Broad capabilities cover date arithmetic and value adjustment, chronological comparison, and regional date conversion. The project also provides utilities for date component extraction, random date generation for testing, and the management of time periods and intervals.

The library supports the serialization and deserialization of date and region information for data storage and network transmission.

Features

  • Date Manipulation Utilities - Provides a comprehensive toolkit for date arithmetic, adding or subtracting time units, and calculating durations in Swift.
  • Date and Time Libraries - Provides a comprehensive toolkit for adding or subtracting time units like hours, minutes, and days.
  • Arithmetic Logic - Provides a structured unit-based system for calculating new dates by applying offsets to specific time components.
  • Numeric and Date Formatting - Transforms date and time objects into human-readable strings according to regional localization and layout requirements.
  • ISO8601 Serialization - Supports encoding and decoding of date objects using the ISO8601 international standard for consistent data representation.
  • Standard Format Recognizers - Automatically recognizes major date formats like ISO8601, SQL, and HTTP to create structured date objects.
  • Fluent Date Processing - Implements a fluent API wrapper around native date types to enable more readable and intuitive date manipulation through method chaining.
  • Relative Date Formatting - Displays dates as relative time offsets in multiple languages using customizable styles.
  • Date String Parsers - Converts text into date objects by matching input strings against predefined or custom format templates.
  • Localized Formatters - Transforms date and time objects into human-readable strings across multiple languages and locales.
  • Timezone Management - Manages and converts time across different geographical regions and offsets to ensure global accuracy.
  • Locale-Aware Value Formatting - Transforms date objects into human-readable strings based on regional locales and calendar settings.
  • Internationalized Date Formatting - Converts date objects into human-readable text using colloquial styles and multi-language support.
  • Chronological Comparisons - Provides capabilities to determine chronological relationships between dates, including checks for identical days.
  • Date Component Extractors - Retrieves specific individual components of a date, such as the weekday or hour, for use in application logic.
  • Interval Comparisons - Determines the chronological order between different points in time and adjusted intervals.
  • Reference Date Derivations - Provides functionality to create new dates based on a specific reference point using predefined generation functions.
  • Regional Conversions - Transforms dates from one calendar, locale, or timezone to another while preserving the expressed value.
  • Regional Date Creations - Allows generating date objects from strings or components while specifying target timezones, calendars, and locales.
  • Relative Date Generations - Creates new date objects based on temporal offsets such as tomorrow, next week, or the next available weekday.
  • Time Period Managements - Implements integrated logic to handle defined spans of time, durations, and intervals.
  • Relative Date Generators - Produces dates and time offsets based on natural language reference points like tomorrow or next week.
  • Duration Interval Calculators - Provides utilities for computing the precise differences and spans of time between two date points.
  • Relative Date Generators - Produces date offsets and new date objects based on reference points such as tomorrow or next week.
  • Date Validation - Provides validation checks to verify that date strings match expected formats and are chronologically valid.
  • Date And Time - Management for date and time objects.

Star 历史

malcommac/swiftdate 的 Star 历史图表malcommac/swiftdate 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

SwiftDate 的开源替代方案

相似的开源项目,按与 SwiftDate 的功能重合度排序。
  • matthewyork/datetoolsMatthewYork 的头像

    MatthewYork/DateTools

    7,186在 GitHub 上查看↗

    DateTools is a date manipulation library for iOS applications that provides utilities for date arithmetic, range management, and relative time formatting. It functions as a set of tools to shift dates by specific units, calculate durations between timestamps, and convert dates into localized, human-readable strings. The library specializes in the analysis of time spans, offering systems to define, compare, and organize overlapping or sequential time periods. It includes logic to determine chronological relationships, such as whether dates fall within specific windows or how different time per

    Objective-C
    在 GitHub 上查看↗7,186
  • arrow-py/arrowarrow-py 的头像

    arrow-py/arrow

    9,046在 GitHub 上查看↗

    Arrow is a Python date and time library that provides a simplified interface for creating and manipulating timestamps by wrapping the Python standard library. It serves as a tool for managing date objects, handling timezone offsets, and performing relative date calculations. The library is distinguished by its ability to humanize timestamps into natural language relative descriptions across multiple locales and parse human-readable time phrases back into precise date objects. It also features a specialized parser for converting ISO 8601 strings and custom formatted text into date objects. Br

    Python
    在 GitHub 上查看↗9,046
  • formkit/tempoformkit 的头像

    formkit/tempo

    2,581在 GitHub 上查看↗

    Tempo is a JavaScript date manipulation library that provides a suite of tools for parsing, formatting, and calculating dates and times. It serves as a date arithmetic engine, a locale-aware formatter, and a timezone offset manager for native JavaScript date objects. The library includes a dedicated ISO 8601 date parser for validating and converting standardized strings into date objects. It handles geographic normalization through IANA timezone offset management and utilizes the native Internationalization API for region-specific date formatting. The project covers a broad range of date and

    TypeScriptdatedate-formattingdatetime
    在 GitHub 上查看↗2,581
  • moment/momentmoment 的头像

    moment/moment

    47,965在 GitHub 上查看↗

    Moment is a JavaScript date manipulation library used for parsing, validating, manipulating, and formatting dates and times. It provides a system for converting date strings into structured objects using the ISO 8601 standard or custom tokens. The library includes a timezone management tool for handling UTC offsets and geographic timezones, ensuring accurate date calculations across different regions. It features an internationalized date formatter and a relative time calculator to render timestamps as human-friendly durations adapted to various cultural locales and languages. The project co

    JavaScript
    在 GitHub 上查看↗47,965
查看 SwiftDate 的所有 30 个替代方案→

常见问题解答

malcommac/swiftdate 是做什么的?

SwiftDate is a date manipulation library for the Swift programming language. It provides a toolkit for parsing, validating, and formatting dates, times, and timezones.

malcommac/swiftdate 的主要功能有哪些?

malcommac/swiftdate 的主要功能包括:Date Manipulation Utilities, Date and Time Libraries, Arithmetic Logic, Numeric and Date Formatting, ISO8601 Serialization, Standard Format Recognizers, Fluent Date Processing, Relative Date Formatting。

malcommac/swiftdate 有哪些开源替代品?

malcommac/swiftdate 的开源替代品包括: matthewyork/datetools — DateTools is a date manipulation library for iOS applications that provides utilities for date arithmetic, range… arrow-py/arrow — Arrow is a Python date and time library that provides a simplified interface for creating and manipulating timestamps… formkit/tempo — Tempo is a JavaScript date manipulation library that provides a suite of tools for parsing, formatting, and… moment/moment — Moment is a JavaScript date manipulation library used for parsing, validating, manipulating, and formatting dates and… python-pendulum/pendulum — Pendulum is a Python datetime library used for creating, manipulating, and formatting date and time objects with… spencermountain/spacetime — Spacetime is a JavaScript timezone library and date manipulation framework designed for parsing, formatting, and…