Clock
One shared clock: a now signal that ticks every second in the browser and countdowns to a date as signals. No timer runs on the server.
Part of @tectra-ng/utils (npm install @tectra-ng/utils, also included in tectra-ng).
Now
now is a signal of the current time; format it with any date pipe.
23:32:34Wednesday, 11 November 2026
Countdown
countdown() gives the time left, an "ending soon" flag (the last 20 seconds here) and an "expired" flag. Start a 30-second offer.
Relative
Pass clock.now() to txRelativeTime and the texts keep up by themselves.
| Ann | 11 seconds ago |
| Mark | 1 minute ago |