Overview
Introduction
Building a list of shift start times, appointment slots, or recurring check-in times by hand is easy to get wrong once the interval doesn't divide evenly into an hour, or the sequence runs past midnight.
This tool generates that list for you: give it a start time, a step, and a count, and it produces every time in the sequence, wrapping cleanly around the 24-hour clock.
What Is Generate Custom Clock Times?
A custom clock time generator that takes a start time in HH:MM, a step expressed as a number and a unit (seconds, minutes, or hours), and a count, then outputs that many HH:MM:SS times, one per line.
Unlike a date generator, it works purely on the clock, so a sequence that runs past midnight simply wraps back to 00:00:00 and continues rather than rolling into a new calendar date.
How Generate Custom Clock Times Works
The start time is parsed as HH:MM and converted to a total number of seconds since midnight; the step is parsed and converted to seconds as well, regardless of which unit you entered it in.
Each time in the sequence is computed by adding a multiple of the step to the start, then applying modulo 86,400 (the number of seconds in a day) so the result always wraps to a valid time of day.
When To Use Generate Custom Clock Times
Use it to build a list of evenly spaced appointment slots, shift start times, or reminder times, like every 90 minutes starting at 9:00.
It's also handy for generating overnight or 24-hour-cycle time sequences where you need to see exactly how the times wrap past midnight.
Often used alongside Generate a Time Sequence, Generate Random Clock Times and Sort Clock Times.
Features
Advantages
- Wraps cleanly past midnight using modulo arithmetic, so overnight sequences don't need special-case handling.
- Accepts step units in seconds, minutes, or hours, all in one compact input format.
- Generates up to 1000 times in a single batch.
Limitations
- Caps out at 1000 times per run; larger sequences need to be split across multiple batches.
- Works on a bare clock time with no date attached, so it can't tell you which calendar day a wrapped time actually falls on.
Examples
Best Practices & Notes
Best Practices
- Use a step in minutes for appointment or meeting slots, since that's the most common scheduling granularity.
- Watch for wraparound when the start time is late in the day; the sequence's early entries may look later than its later entries once it crosses midnight.
Developer Notes
The wraparound uses the double-modulo pattern `((startSeconds + i * stepSeconds) % SECONDS_PER_DAY + SECONDS_PER_DAY) % SECONDS_PER_DAY`, which keeps the result in the 0-86399 range even though none of the inputs here can actually go negative, matching the same normalization pattern used elsewhere in the time category for consistency.
Generate Custom Clock Times Use Cases
- Generating a list of appointment or meeting slots at a fixed interval
- Building shift start times or check-in reminders spaced evenly apart
- Producing overnight time sequences to verify midnight-wrap behavior in downstream code
Common Mistakes
- Forgetting that the sequence wraps past midnight rather than continuing to count hours past 23:59:59.
- Requesting more than 1000 times in a single run, which is rejected; split large sequences into multiple batches instead.
Tips
- If you need actual calendar dates attached to each generated time, pair this tool's output with Custom Calendar Date Generator rather than trying to encode dates into the time step.
- Use a small count first to sanity-check the step and start time before generating a full 1000-entry batch.