Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Timeline for Output the current time in ascii art

Current License: CC BY-SA 3.0

33 events
when toggle format what by license comment
Mar 15, 2016 at 21:18 vote accept Community Bot
Mar 15, 2016 at 21:04 history edited user31556 CC BY-SA 3.0
deleted 4534 characters in body
Mar 4, 2016 at 6:19 history tweeted twitter.com/StackCodeGolf/status/705638847741210625
Feb 23, 2016 at 21:26 answer added Kenney timeline score: 5
Feb 23, 2016 at 16:34 answer added Argenis García timeline score: 0
Feb 18, 2016 at 1:00 answer added J Atkin timeline score: 3
Feb 17, 2016 at 18:59 comment added user31556 @JAtkin thats fine, as long as it looks exactly as it should.
Feb 17, 2016 at 14:52 comment added J Atkin Can we have trailing space in the output?
Feb 17, 2016 at 4:38 answer added user31556 timeline score: 2
Feb 17, 2016 at 3:37 history edited user31556 CC BY-SA 3.0
added 129 characters in body
Feb 17, 2016 at 2:29 history edited user31556 CC BY-SA 3.0
added 31 characters in body
Feb 16, 2016 at 20:52 history edited user31556 CC BY-SA 3.0
added 132 characters in body
Feb 16, 2016 at 18:58 history edited user31556 CC BY-SA 3.0
added 245 characters in body
Feb 16, 2016 at 18:58 comment added user31556 @anatolyg question updated. basically no leading 0 for hours, there is one for minutes but you'll receive it in the input, so treat it as normal.
Feb 16, 2016 at 16:51 answer added Digital Trauma timeline score: 2
Feb 16, 2016 at 16:13 comment added anatolyg I guess the program has to output a leading 0 for the number of minutes, if needed? (e.g. 10, 9, 'am' => 10:09am). What about leading 0 for hours (e.g. 8, 9, 'am')? Have to insert 0? Have to insert a space? Have to insert either a space or zero? Can assume the input already contains the leading zero or space?
Feb 16, 2016 at 14:45 answer added jdt timeline score: 2
Feb 16, 2016 at 14:38 comment added wizzwizz4 @MathiasFoster I would recommend that you allow any input (within reason), but that you have the deciding vote on it, and if somebody uses input that trivialises the question, tell them and enforce it.
Feb 16, 2016 at 11:38 history edited primo
edited tags
Feb 16, 2016 at 9:40 comment added user31556 @TobySpeight would "12-47-am" work in most languages?
Feb 16, 2016 at 9:37 comment added Toby Speight How do we receive arguments in languages without arrays? Or with arrays but without tuples? (Your example 'array' has elements of different types, unlike arrays in just about any language that exists)
Feb 16, 2016 at 9:07 comment added user31556 @wizzwizz4 aaargh! fixed. thanks for the heads up.
Feb 16, 2016 at 9:05 history edited user31556 CC BY-SA 3.0
edited body
Feb 16, 2016 at 8:50 comment added PurkkaKoodari @Mego I don't think this is a duplicate. The other challenge has that ultra simple formatting (even compressable as binary). This one will probably get more kolmogorov-complexity-like answers.
Feb 16, 2016 at 8:00 comment added wizzwizz4 So, [12, 47, 'pm'] should output 12:47 am?
Feb 16, 2016 at 7:45 review Close votes
Feb 16, 2016 at 13:09
Feb 16, 2016 at 7:34 comment added user45941 The different format of the numbers and the addition of the colon and am/pm do little to differentiate the challenges imo. The main part of the challenge is still converting integers to ascii art.
Feb 16, 2016 at 7:34 history edited user31556 CC BY-SA 3.0
added 1 character in body
Feb 16, 2016 at 7:33 comment added user31556 Specifically: that question is clock-style numbers. This question is actual time, with all the right formatting.
Feb 16, 2016 at 7:32 comment added user31556 @Mego you reckon? That question simply says render (any) number as (very) basic ascii art. This question beefs up the ascii art, adds the am/pm and colon, and specifies input with an array with a mix of types.
Feb 16, 2016 at 7:28 history edited user31556 CC BY-SA 3.0
added 1 character in body
Feb 16, 2016 at 7:28 comment added user45941 Possible duplicate of Render "Digital Clock Style" Numbers
Feb 16, 2016 at 7:27 history asked user31556 CC BY-SA 3.0
toggle format

AltStyle によって変換されたページ (->オリジナル) /