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

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

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

轻量级 JavaScript 日期处理库

排名更新于 2026年6月30日

For 轻量级 JavaScript 日期格式化库, the strongest matches are moment/luxon (Luxon is a modern, dependency-free JavaScript library purpose-built for), date-fns/date-fns (date-fns is a modular, tree-shakeable JavaScript library that provides) and iamkun/dayjs (Day). formkit/tempo and moment/moment round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.

用于高效解析、操作及格式化日期与时间字符串的紧凑型 JavaScript 开源工具。

轻量级 JavaScript 日期处理库

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • moment/luxonmoment 的头像

    moment/luxon

    16,360在 GitHub 上查看↗

    Luxon is a JavaScript library for parsing, validating, manipulating, and formatting dates and times. It provides a suite of immutable objects for managing points in time, durations, and intervals, ensuring that all transformations return new instances to maintain predictable state. The library distinguishes itself by leveraging the native Internationalization API and environment-based time zone databases. This architecture allows for localized date formatting and global time zone conversions without requiring external data files or additional dependencies. It also supports non-Gregorian calen

    Luxon is a modern, dependency-free JavaScript library purpose-built for parsing and formatting dates with full support for custom tokens, multiple formats, and locale-aware output via the native Intl API—meeting your requirements for a small, efficient library.

    JavaScriptInternationalized Date Formatting
    在 GitHub 上查看↗16,360
  • date-fns/date-fnsdate-fns 的头像

    date-fns/date-fns

    36,579在 GitHub 上查看↗

    date-fns is a JavaScript date utility library providing a collection of pure functions for manipulating, formatting, and calculating dates and times. It serves as an immutable date manipulation library and a tool for time zone management, ensuring that date transformations are performed without modifying the original date objects. The library functions as a date formatting tool that converts date objects into human-readable strings using custom patterns and international locales. It includes a specific toolset for adjusting and calculating date representations across different geographical re

    date-fns is a modular, tree-shakeable JavaScript library that provides pure functions for parsing dates from strings and formatting them with custom tokens and locale support, and it has no external dependencies, making it a comprehensive fit for efficient date string handling.

    TypeScriptInternationalized Date Formatting
    在 GitHub 上查看↗36,579
  • iamkun/dayjsiamkun 的头像

    iamkun/dayjs

    48,662在 GitHub 上查看↗

    Day.js is a lightweight utility for parsing, validating, and manipulating date objects. It provides a fluent, chainable interface that allows for complex time calculations and transformations to be performed through a sequence of readable method calls. By utilizing an immutable wrapper pattern, the library ensures data integrity by creating new instances for every operation rather than modifying existing objects. The project is distinguished by a minimalist core abstraction that maintains a small footprint by offloading non-essential features to an optional, modular plugin system. This archit

    Day.js is a lightweight, dependency-free JavaScript date library that provides parsing and formatting with a familiar Moment-like API, supports locale-aware output via optional plugins, and is tree-shakeable as an ES module — exactly the small, efficient tool this search is after.

    JavaScriptInternationalized Date Formatting
    在 GitHub 上查看↗48,662
  • 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

    Tempo is a full-featured JavaScript library for parsing, formatting, and manipulating dates, with locale-aware formatting via the Intl API and support for custom format tokens, matching the core request for date parsing and formatting—though its breadth may mean a larger bundle than the "minimal" emphasis in this search.

    TypeScriptInternationalized Date FormattingDate String Parsers
    在 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

    Moment.js is a widely used date parsing and formatting library with locale support and custom tokens, fitting the category, but its large bundle size, lack of tree-shakeable ES modules, and bundled dependencies go against the request for a minimal and efficient library.

    JavaScriptInternationalized Date FormattingDate String Parsers
    在 GitHub 上查看↗47,965
  • js-joda/js-jodajs-joda 的头像

    js-joda/js-joda

    1,658在 GitHub 上查看↗

    :clock2: Immutable date and time library for javascript

    js-joda is a full-featured immutable date and time library that can parse and format dates with custom tokens and locale support, but its comprehensive approach means it is not minimal or as lightweight as you're looking for.

    JavaScriptFunctional Utility Libraries
    在 GitHub 上查看↗1,658

Related searches

  • a library for handling dates and times
  • a robust library for handling PHP dates
  • a library for handling Java date time
  • a rust library for date and time
  • a library for handling dates in C#
  • a python library for date and time
  • a javascript library for parsing csv files
  • a lightweight validation library for JavaScript