date.ts

date.ts

基本信息

  • 类型: 工具库
  • 路径: src/lib/date.ts

功能描述

工具库函数,提供通用功能

导出内容

  • <code>getDateLocale</code> - 函数
  • <code>formatDistanceToNow</code> - 函数
  • <code>formatDate</code> - 函数

依赖导入

  • date-fns
  • date-fns/locale

详细说明

详见代码实现

← 返回目录