·1k-date-formatting
*

1k-date-formatting

onekeyhq/app-monorepo

指导 OneKey 应用程序中正确的日期和时间格式。在 UI 中显示日期/时间、格式化时间戳或日期需要遵循应用程序区域设置时使用。日期、时间、区域设置、formatDate、dateUtils。

19安装·1热度·@onekeyhq

安装

$npx skills add https://github.com/onekeyhq/app-monorepo --skill 1k-date-formatting

SKILL.md

This skill ensures consistent date and time formatting across the OneKey app, respecting user locale settings.

| formatDate(date, options?) | Full date and time | 2024/01/15, 14:30 | | formatTime(date, options?) | Time only | 14:30:45 | | formatRelativeDate(date) | Relative display | Today, Yesterday, 2024/01/15 | | formatDistanceToNow(date) | Time distance | 2 days ago, 5 minutes ago | | formatDateFns(date, format?) | Custom format | Based on format template |

| yyyy | 4-digit year | 2024 | | LL | 2-digit month | 01 | | dd | 2-digit day | 15 | | HH | 24-hour hours | 14 | | mm | Minutes | 30 | | ss | Seconds | 45 | | PPP | Full date | January 15, 2024 |

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/onekeyhq/app-monorepo --skill 1k-date-formatting
分类
*创意媒体
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 1k-date-formatting?

指导 OneKey 应用程序中正确的日期和时间格式。在 UI 中显示日期/时间、格式化时间戳或日期需要遵循应用程序区域设置时使用。日期、时间、区域设置、formatDate、dateUtils。 来源:onekeyhq/app-monorepo。

如何安装 1k-date-formatting?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/onekeyhq/app-monorepo --skill 1k-date-formatting 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/onekeyhq/app-monorepo