Thousands of tools! Check out Online Tools – I have now added thousands of tools.
I often have to generate a sequence of clock times so I created this simple online utility that does it for me. It lets you generate however many clock times you need starting from any o'clock with any time interval between the times. It works in the browser and is powered by alien technology from the future.
Clock Time Generator Options
Clock Time Generator Examples (click to try!)
00:00:00 00:00:05 00:00:10 00:00:15 00:00:20 00:00:25 00:00:30 00:00:35 00:00:40 00:00:45 00:00:50 00:00:55 00:01:00
01:01:01 am, 02:02:02 am, 03:03:03 am, 04:04:04 am, 05:05:05 am, 06:06:06 am, 07:07:07 am, 08:08:08 am, 09:09:09 am, 10:10:10 am, 11:11:11 am, 12:12:12 pm, 01:13:13 pm, 02:14:14 pm, 03:15:15 pm, 04:16:16 pm, 05:17:17 pm, 06:18:18 pm, 07:19:19 pm, 08:20:20 pm, 09:21:21 pm, 10:22:22 pm, 11:23:23 pm, 00:24:24 am, 01:25:25 am, 02:26:26 am, 03:27:27 am, 04:28:28 am, 05:29:29 am, 06:30:30 am, 07:31:31 am, 08:32:32 am, 09:33:33 am, 10:34:34 am, 11:35:35 am, 12:36:36 pm, 01:37:37 pm, 02:38:38 pm, 03:39:39 pm, 04:40:40 pm, 05:41:41 pm, 06:42:42 pm, 07:43:43 pm, 08:44:44 pm, 09:45:45 pm, 10:46:46 pm, 11:47:47 pm, 00:48:48 am, 01:49:49 am, 02:50:50 am, 03:51:51 am, 04:52:52 am, 05:53:53 am, 06:54:54 am, 07:55:55 am, 08:56:56 am, 09:57:57 am, 10:58:58 am, 11:59:59 am, 01:01:00 pm
9:0 | 9:1e | a:0 | a:1e | b:0 | b:1e | c:0 | c:1e | d:0 | d:1e | e:0 | e:1e | f:0 | f:1e | 10:0
0 am, 1 am, 2 am, 3 am, 4 am, 5 am, 6 am, 7 am, 8 am, 9 am, 10 am, 11 am, 12 pm, 13 pm, 14 pm, 15 pm, 16 pm, 17 pm, 18 pm, 19 pm, 20 pm, 21 pm, 22 pm, 23 pm
09:00 am; 08:50 am; 08:40 am; 08:30 am; 08:20 am; 08:10 am; 08:00 am; 07:50 am; 07:40 am; 07:30 am; 07:20 am; 07:10 am; 07:00 am; 06:50 am; 06:40 am; 06:30 am; 06:20 am; 06:10 am; 06:00 am; 05:50 am; 05:40 am; 05:30 am; 05:20 am; 05:10 am; 05:00 am; 04:50 am; 04:40 am; 04:30 am; 04:20 am; 04:10 am; 04:00 am; 03:50 am; 03:40 am; 03:30 am; 03:20 am; 03:10 am; 03:00 am
08:08:08 am 08:08:08 pm 08:08:08 am 08:08:08 pm 08:08:08 am 08:08:08 pm 08:08:08 am 08:08:08 pm 08:08:08 am 08:08:08 pm
How Does This Clock Time Generator Work?
This linear time series generator works entirely in your browser and is written in JavaScript. It starts by validating and parsing the given start and interval time values. It uses four different regular expressions to test the correctness of the input time. The first regexp is /(\d{1,2}):(\d{1,2}):(\d{1,2})/
that matches the HH:MM:SS
and H:M:S
time format that includes hours, minutes, and seconds. The second regexp is /(\d{1,2}):(\d{1,2})/
that matches the HH:MM
and H:M
time formats that includes hours and minutes. The third regexp is just /(\d+)/
that matches seconds. The fourth regexp is /(\d{1,2})\s*(am|pm)/i
that matches the 12-hour clock time format. If the time format is correct, then it converts both time values to seconds as it's easier to do the time arithmetic in seconds. The start time is stored in the startInSeconds
variable and the delta in the intervalInSeconds
variables. To calculate just the seconds from hours, minutes and seconds, it uses the formula hours*3600 + minutes*60 + seconds
. To generate count
(specified in options) time values in the output list, it runs a for
loop count
times. The loop starts by assigning the startInSeconds
value to the variable currentTimeInSeconds
and in every iteration adds (or subtracts, if time is generated in reverse) the intervalInSeconds
step value to the currentTimeInSeconds
value, and saves this number in the output list outputTimes
. After that, it turns the saved seconds back to hours, minutes, and seconds. This is done by using the inverse function of the formula above. To convert the 24-hour time format to the 12-hour format, the after-the-noon hour values get 12
subtracted from them. The output formatting is performed by using the String.replace()
function. The output format values HH
and H
get replaced by the numeric hours, MM
and M
get replaced by the numeric minutes, and SS
and S
get replaced by the numeric seconds.
Created by Browserling
This clock time generator was created by me and my team at Browserling. Behind the scenes, it's actually powered by our web developer tools that are used by millions of people every month. Browserling itself is an online cross-browser testing service powered by alien technology. Check it out!
Secret message: If you love my tools, then I love you, too! Use coupon code TOOLLING to get a discount at my company.