16 个仓库
Libraries for parsing, formatting, and manipulating dates.
Explore 16 awesome GitHub repositories matching part of an awesome list · Date Utilities. Refine with filters or upvote what's useful.
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
Immutable date library with a modern API.
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
Library for date parsing and manipulation.
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
Modern utility library for dates.
js-cookie is a lightweight JavaScript library and browser storage interface used to create, read, and delete cookies. It provides a programmatic API for managing client-side data persistence and maintaining browser state across page refreshes. The library includes capabilities for custom cookie encoding and the use of custom value converters to handle specific character formats. It also features a global attribute configuration system that allows default expiration, security, and scope rules to be applied automatically to all cookie operations. The tool covers general cookie management inclu
Provides logic to convert numerical durations or dates into UTC strings for cookie expiration.
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
Library for working with dates and times.
is.js is a JavaScript validation library and data type checker. It provides a suite of utilities to verify whether variables are primitives, arrays, functions, or specific object types. The project allows for the implementation of custom validation logic and the use of naming namespaces to override default rules and regular expressions. It covers a broad range of validation capabilities, including numeric arithmetic properties, date and time analysis for relative and absolute ranges, and string format verification for patterns such as emails, URLs, and IP addresses. The library also includes
Provides utilities to determine if dates are today, in the future, or within specific relative ranges.
ms.js is a millisecond conversion library providing tools to format durations into text and parse human-readable time strings back into numbers. It functions as a utility for translating numeric millisecond values into human-readable strings and converting time units such as days, hours, and minutes into numeric milliseconds. The project covers time parsing and formatting, enabling the translation of human-readable time units into millisecond values for application timeout management and duration unit conversion. It includes tools for transforming millisecond durations into both concise and l
Millisecond conversion utility.
timeago.js 是一个 JavaScript 库,将时间戳转换为人类可读的相对时间字符串。它作为一个国际化的日期库,将静态日期和时间数据转换为描述性的已过去时间陈述。 该项目提供了一个动态时间更新器,可定期自动刷新网页上的相对时间标签。它支持多语言日期本地化,允许使用内置或自定义的区域设置将已过去时间陈述翻译成各种语言。
Library for formatting relative time.
moment-timezone is a JavaScript library and date manipulation extension designed for parsing and converting timestamps across different geographic regions. It serves as a JavaScript implementation of the Internet Assigned Numbers Authority database to manage global time offsets and daylight saving rules. The library provides regional localization and historical time zone analysis by mapping timestamps to geographic regions using official IANA data. It enables the translation of date and time strings between various zones while accounting for chronological records of clock transitions. The pr
Timezone support for date manipulation.
This library is a client-side tool designed to transform static date strings into automatically updating, human-readable relative time labels within web interfaces. It functions as a plugin that scans the document for specific elements and converts their content into dynamic expressions, such as minutes or hours ago, to provide context for recent activity. The system distinguishes itself by decoupling display logic from JavaScript through attribute-driven configuration, allowing settings and date values to be managed directly within HTML. It maintains accuracy by employing interval-based poll
jQuery plugin for fuzzy timestamps.
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
Tree-shakable library for native Date objects.
Lightweight and simple JS date formatting and parsing
Lightweight date formatting and parsing.
Date() for humans
Human-readable date parsing.
DEPRECATED: Timezone-enabled JavaScript Date object. Uses Olson zoneinfo files for timezone data.
Timezone-enabled Date object implementation.
Super simple countdowns.
Simple countdown timer utility.
🗺️⏳ Count down to your events—visually and interactively! With React at its core, this project merges time and place, turning ordinary countdowns into engaging, map-based experiences.
Map-based countdown timer.