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

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

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

arrow-py/arrow

0
View on GitHub↗
9,046 星标·757 分支·Python·Apache-2.0·6 次浏览arrow.readthedocs.io↗

Arrow

Arrow 是一个 Python 日期和时间库,通过封装 Python 标准库,为创建和操作时间戳提供了简化的接口。它是一个用于管理日期对象、处理时区偏移以及执行相对日期计算的工具。

该库的特色在于能够将时间戳人性化地转换为多种语言的自然语言相对描述,并将人类可读的时间短语解析回精确的日期对象。它还具备一个专门的解析器,用于将 ISO 8601 字符串和自定义格式的文本转换为日期对象。

其广泛的功能包括用于日期偏移的时间算术、用于计算时间跨度的范围生成,以及用于将时间戳对齐到特定单位的边界舍入。它还涵盖了全球时区和夏令时转换,以及用于国际化日期格式的本地化翻译。

Features

  • Date and Time Libraries - Provides a simplified Python library for parsing, validating, manipulating, and formatting date and time values.
  • Standard Library Wrappers - Provides a simplified interface that wraps the Python standard library datetime module to improve ergonomics.
  • Relative Date Generations - Enables the creation of date objects using relative offsets like days, weeks, or months.
  • Date Object Creators - Instantiates date and time objects from common input standards such as ISO 8601.
  • Date String Parsers - Automatically converts ISO 8601 strings or custom text into native date objects.
  • Temporal Arithmetic - Provides functions for adding or subtracting time increments from timestamps while accounting for calendar variations.
  • Natural Language Formatters - Translates timestamps and time intervals into colloquial, natural language phrases based on locale.
  • Relative Time Humanization - Translates timestamps into localized, human-readable relative time descriptions like 'two hours ago'.
  • Natural Language Time Parsers - Parses human-readable time phrases and relative strings back into precise date objects using rule-based patterns.
  • ISO 8601 Parsers - Implements specialized parsing to convert ISO 8601 compliant date-time strings into Python date objects.
  • Temporal Natural Language Parsing - Provides utilities to parse human-readable date and time strings into structured temporal objects.
  • Timezone Management - Provides comprehensive logic for managing global timezone offsets and daylight savings transitions.
  • Timezone Conversions - Changes the timezone of a timestamp and handles corresponding offset conversions for different geographic regions.
  • Chronological Comparisons - Provides logic for determining chronological relationships to check if one timestamp occurs before or after another.
  • Relative Offset Management - Shifts dates and times forward or backward using relative offsets for units ranging from microseconds to years.
  • Date Manipulation Utilities - Provides tools for performing arithmetic and transformations to adjust timestamps by specified durations.
  • Bidirectional Parsing - Transforms date objects into strings and parses strings back into date objects using automated rules.
  • Calendar Date Calculations - Calculates date shifts by adding or subtracting calendar units while accounting for varying month and year lengths.
  • Temporal Offset Calculations - Performs calculations of time intervals and relative offsets such as hours, days, or weeks.
  • Temporal Rounding - Provides utilities to align timestamps to the nearest floor or ceiling boundary based on specific time units.
  • Token-Based Templates - Generates formatted strings from date objects using custom token patterns and built-in templates.
  • Locale Mappings - Uses lookup tables and mapping logic to translate temporal components into language-specific equivalents for globalized output.
  • Timestamp Generators - Generates date and time objects from simplified input options and current system time.
  • Date Formatting Utilities - Offers utilities for formatting date and time values into human-readable strings via customizable patterns.
  • Date Localizations - Adapts date representations and names to specific global locales and languages.
  • Temporal String Interpolation - Transforms date objects into human-readable strings using customized alphanumeric tokens and predefined mappings.
  • Temporal Span Calculators - Calculates time spans, ranges, floors, and ceilings for frames ranging from microseconds to years.
  • Date Range Iterators - Generates programmatic sequences of date objects between two points in time using a specified interval.
  • Temporal Translation Mappings - Uses external mapping files to swap date and time components with language-specific equivalents.
  • Interpolation Tokens - Translates custom alphanumeric tokens into date and time components for flexible string generation.
  • Internationalized Date Formatting - Adapts date and time strings to specific languages and locales for user-facing displays.
  • Data Manipulation Libraries - Enhanced work with dates and times.
  • Date And Time - Human-friendly date and time manipulation.

Star 历史

arrow-py/arrow 的 Star 历史图表arrow-py/arrow 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

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

Start searching with AI

常见问题解答

arrow-py/arrow 是做什么的?

Arrow 是一个 Python 日期和时间库,通过封装 Python 标准库,为创建和操作时间戳提供了简化的接口。它是一个用于管理日期对象、处理时区偏移以及执行相对日期计算的工具。

arrow-py/arrow 的主要功能有哪些?

arrow-py/arrow 的主要功能包括:Date and Time Libraries, Standard Library Wrappers, Relative Date Generations, Date Object Creators, Date String Parsers, Temporal Arithmetic, Natural Language Formatters, Relative Time Humanization。

arrow-py/arrow 有哪些开源替代品?

arrow-py/arrow 的开源替代品包括: sdispater/pendulum — Pendulum is a Python date and time library that provides a simplified interface for date arithmetic, ISO parsing,… dromara/carbon — Carbon is a Go library for semantic date and time calculations, formatting, and parsing. It provides a semantic… 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… malcommac/swiftdate — SwiftDate is a date manipulation library for the Swift programming language. It provides a toolkit for parsing,… formkit/tempo — Tempo is a JavaScript date manipulation library that provides a suite of tools for parsing, formatting, and…

Arrow 的开源替代方案

相似的开源项目,按与 Arrow 的功能重合度排序。
  • sdispater/pendulumsdispater 的头像

    sdispater/pendulum

    6,668在 GitHub 上查看↗

    Pendulum is a Python date and time library that provides a simplified interface for date arithmetic, ISO parsing, localization, and timezone management. It serves as a replacement for the standard library datetime module, extending existing classes to maintain compatibility while offering a more intuitive management interface. The library distinguishes itself through a natural language date formatter that translates time differences into localized strings and a dedicated ISO 8601 date parser. It also includes tools for time-dependent logic testing, allowing the system clock to be mocked or fi

    Python
    在 GitHub 上查看↗6,668
  • dromara/carbondromara 的头像

    dromara/carbon

    5,221在 GitHub 上查看↗

    Carbon is a Go library for semantic date and time calculations, formatting, and parsing. It provides a semantic interface to simplify temporal data handling and improve the readability of date and time manipulations. The library is distinguished by its support for multi-calendar date conversion, allowing transformations between Gregorian, Chinese Lunar, Persian, and Hebrew calendar systems. It also includes a localized temporal framework that uses ISO 639-1 codes to format dates and relative time differences across multiple language locales. Additional capabilities cover global time zone man

    Go
    在 GitHub 上查看↗5,221
  • python-pendulum/pendulumpython-pendulum 的头像

    python-pendulum/pendulum

    6,668在 GitHub 上查看↗

    Pendulum is a Python datetime library used for creating, manipulating, and formatting date and time objects with native timezone awareness. It extends the native Python datetime class to maintain compatibility while providing a specialized engine for date arithmetic and timezone management. The library features a dedicated ISO 8601 and RFC 3339 parser that converts standardized strings into date objects without requiring manual format strings. It also includes a relative time generator for producing natural language descriptions of time differences and a timezone management tool that automati

    Python
    在 GitHub 上查看↗6,668
  • spencermountain/spacetimespencermountain 的头像

    spencermountain/spacetime

    4,109在 GitHub 上查看↗

    Spacetime is a JavaScript timezone library and date manipulation framework designed for parsing, formatting, and managing dates across global timezones. It provides an internationalization tool for localizing date components and includes static type definitions for TypeScript environments to ensure type checking and autocompletion. The project features a plugin system for custom date logic, allowing the injection of specialized methods and behaviors into date objects. This extensibility enables the implementation of project-specific time requirements through prototype-based method extensions.

    JavaScriptdate-formattingdaylight-savingstime-formatting
    在 GitHub 上查看↗4,109
  • 查看 Arrow 的所有 30 个替代方案→