feat(ondemand): Add on-demand timestamp feature

This commit is contained in:
Philipp Kunz 2024-12-14 02:22:43 +01:00
parent a941f10af3
commit ce3af11ca8
3 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,10 @@
# Changelog
## 2024-12-14 - 4.2.0 - feat(ondemand)
Add on-demand timestamp feature
- Added an on-demand script to output human-readable time ago for current timestamp.
## 2024-12-13 - 4.1.1 - fix(smarttime.units)
Fix issue in getMilliSecondsAsHumanReadableAgoTime

3
test/ondemand.ts Normal file
View File

@ -0,0 +1,3 @@
import * as smarttime from '../ts/index.js';
console.log(smarttime.getMilliSecondsAsHumanReadableAgoTime(Date.now()));

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smarttime',
version: '4.1.1',
version: '4.2.0',
description: 'Provides utilities for advanced time handling including cron jobs, timestamps, intervals, and more.'
}