RepositoryTypeScriptUSHoa Kỳ
formkit

formkit/tempo

📆 Parse, format, manipulate, and internationalize dates and times in JavaScript and TypeScript.

2.6ksao
45fork
1issue
3lượt xem
TEMPO

Vitest GitHub Sponsors NPM Version

Tempo — The easiest way to work with dates in JavaScript (and TypeScript)

Tempo is a new library in a proud tradition of JavaScript date and time libraries. Inspired by the likes of moment.js, day.js, and date-fns Tempo is built from the ground up to be as small and easy to use as possible.

Tempo is best thought of as a collection of utilities for working with Date objects — an important distinction from other libraries that provide custom date primitives. Under the hood, Tempo mines JavaScript's Intl.DateTimeFormat to extract complex data like timezones offsets and locale aware date formats giving you a simple API to format, parse, and manipulates dates.

Tempo is tiny tree-shakable framework, you can only take what you need. You can work with timezones with only a few bytes of library code, or perform full international date formatting for ~2Kb (minified and brotlied). Size Limit controls the size.

Development

Install from the repository root with pnpm:

corepack enable
pnpm install

Build the library:

pnpm build

Build the docs app:

pnpm docs-build
Read the docs

Created by the FormKit team.

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJavaScript
iamkun/dayjs

⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API

48.6k
Nov 6, 2026
RepositorySwift
davedelong/time

Robust and type-safe date and time calculations for Swift

2.3k
Sep 5, 2026
RepositoryPython
arrow-py/arrow

🏹 Better dates & times for Python

9.1k
Jun 22, 2026
RepositoryPython
python-pendulum/pendulum

Python datetimes made easy

6.7k
Nov 30, 2026
RepositoryGo
dromara/carbon

A simple, semantic and developer-friendly time package for golang

5.2k
Dec 1, 2026
RepositoryC++
HowardHinnant/date

A date and time library based on the C++11/14/17 <chrono> header

3.4k
Nov 24, 2026
RepositoryPython
myusuf3/delorean

Delorean: Time Travel Made Easy

1.8k
Oct 28, 2026
RepositoryJavaScript
layui/laydate

一款被广泛使用的高级 Web 日历组件,完全开源无偿且颜值与功能兼备,足以应对日期相关的各种业务场景

1.1k
Mar 31, 2023
RepositoryPHP
thephpleague/period

PHP's time range API

730
Oct 28, 2026