该库调用后直接返回类似于“刚刚,几分钟前,几小时前,几天前,年份,季度等”
调用函数返回,传入的第一个参数为时间戳,第二个参数为是否返回带有年份的时间,第二个参数默认false,
-
Notifications
You must be signed in to change notification settings - Fork 0
sinianzhiren/formatTime
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
格式化时间,返回类似于 刚刚,一分钟前,一小时前,等等时间
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published