公告板
版本库
filestore
活动
搜索
登录
template
/
clashNodejs
clash管理页面
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
init
wangzhibo
2023-10-31
9da39812105bfc387db3b3b7c4896983e03d247d
[template/clashNodejs.git]
/
src
/
signals
/
global.ts
1
2
3
4
5
import dayjs from 'dayjs'
import { locale } from '~/i18n'
export const formatTimeFromNow = (time: number | string) =>
dayjs(time).locale(locale()).fromNow()