alepha@docs:~/docs/framework/packages/alepha$
cat datetime.md | pretty1 min read
Last commit:
#Alepha - Datetime
#Installation
Part of the alepha package. Import from alepha/datetime.
npm install alepha
#Overview
Date and time operations.
Features:
- Recurring interval definitions
- Duration helpers (numbers,
[n, unit]tuples andDurationobjects) - Timezone support
- Dayjs integration
#API Reference
#Primitives
$debounce- Middleware that coalesces concurrent calls with the same key into a single handler execution.$interval- Run a function periodically.$throttle- Middleware that rate-controls handler execution using a token bucket.$timeout- Middleware that aborts handler execution if it exceeds a duration limit.
#Providers
DateTimeProvider- The injectable clock. Every service reads time through it -nowMillis(),