31
8
Shortest answer wins.
It must be sorted, and in 24hr time. The final line does not have a comma.
Output should be as follows:
'00:00',
'00:30',
'01:00',
'01:30',
'02:00',
'02:30',
'03:00',
'03:30',
'04:00',
'04:30',
'05:00',
'05:30',
'06:00',
'06:30',
'07:00',
'07:30',
'08:00',
'08:30',
'09:00',
'09:30',
'10:00',
'10:30',
'11:00',
'11:30',
'12:00',
'12:30',
'13:00',
'13:30',
'14:00',
'14:30',
'15:00',
'15:30',
'16:00',
'16:30',
'17:00',
'17:30',
'18:00',
'18:30',
'19:00',
'19:30',
'20:00',
'20:30',
'21:00',
'21:30',
'22:00',
'22:30',
'23:00',
'23:30'
6Is this 24 hour time? Could you please provide the entire output? – xnor – 2015-05-07T08:21:34.470
1Must the output be sorted? – orlp – 2015-05-07T08:30:35.700
Yes. It must be sorted, and in 24hr time. Sorry will update. – Espen Schulstad – 2015-05-07T08:39:04.290
Does the final line have a comma? – xnor – 2015-05-07T08:55:14.580
Final line does not have a comma :) – Espen Schulstad – 2015-05-07T08:57:09.710
Can we use a double quote instead of single ? – Optimizer – 2015-05-07T08:58:48.730
44What if it takes my program 23.5 hours to run? – tfitzger – 2015-05-07T13:59:45.850
9I can't see why that would be a negative. – Espen Schulstad – 2015-05-07T14:00:53.100
@tfitzger I had a go at doing that - it was 40+ more chars! – Tim – 2015-05-07T18:27:58.247
what about daylight saving, leap seconds etc? – Ewan – 2015-05-07T19:18:20.687
6Just a small suggestion about upvotes. I try to upvote every valid answer to a challenge I create as a small reward for taking the effort. I have plenty of rep and don't really need an upvote here, but please consider other answerers who may give up responding if their answers are ignored after lots of hard thinking and debugging. – Logic Knight – 2015-05-16T11:21:52.243
Taking a next step: there is an emoji for each time at a half hour rate – Matthew Roh – 2017-03-28T06:49:05.437