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 Short Date into English Long Date

Current License: CC BY-SA 3.0

34 events
when toggle format what by license comment
Jun 17, 2020 at 9:04 history edited Community Bot
Commonmark migration
Jun 30, 2017 at 9:54 comment added Gareth @whatever No. As long as the code produces the desired result on English machines, you're fine.
Jun 30, 2017 at 8:45 history tweeted twitter.com/StackCodeGolf/status/880708895454396416
Jun 30, 2017 at 7:12 comment added whatever Does it have to work independently of the language setting of the OS? (My german Windows would use german names unless I force powershell to do otherwise)
Jun 29, 2017 at 23:27 comment added Gareth @BradC TIL! In that case, it's optional. But I think it's better to enforce a lack of padding as I did include it in the examples and state it in the output description.
Jun 29, 2017 at 23:26 vote accept Gareth
Jun 29, 2017 at 23:01 answer added mkst timeline score: 1
Jun 29, 2017 at 19:23 comment added BradC Actually there is no year zero, 31st Dec 1 BC is followed immediately by 1st Jan 1 AD. Also, there are several existing answers that pad the year already, so might be better to leave that unspecified.
Jun 29, 2017 at 19:01 comment added Gareth @BradC I would say don't zero pad the year and have it support the range, 0 - 9999.
Jun 29, 2017 at 16:24 answer added BradC timeline score: 1
Jun 29, 2017 at 14:46 comment added BradC And we shouldn't 0-pad the year either? So output "21 April 3" for 0003年04月03日?
Jun 29, 2017 at 14:39 comment added BradC You say we don't have to support negative year values, does that imply we have to support starting at year 1? (There was no year 0). Or just back to year 150, per your earliest example? Any max year? Up to 9999 ok?
Jun 29, 2017 at 14:13 comment added Gareth @OlivierGrégoire That date would be valid.
Jun 29, 2017 at 14:12 comment added Olivier Grégoire What about 2016年2月29日?
Jun 29, 2017 at 13:39 answer added Engineer Toast timeline score: 2
Jun 29, 2017 at 11:45 answer added O S timeline score: 4
Jun 29, 2017 at 11:26 answer added manatwork timeline score: 5
Jun 29, 2017 at 11:07 answer added A. Pooja timeline score: 1
Jun 29, 2017 at 10:46 answer added Titus timeline score: 5
Jun 29, 2017 at 10:25 comment added Gareth @mdahmoune You don't need to support this unless it's easier to do so.
Jun 29, 2017 at 9:50 answer added TheLethalCoder timeline score: 4
Jun 29, 2017 at 9:39 comment added mdahmoune Should we consider a year on more than 4 characters (eg 10987-01-01)?
Jun 29, 2017 at 8:28 history edited Gareth CC BY-SA 3.0
added 34 characters in body
Jun 29, 2017 at 8:27 comment added Gareth @ValueInk If you read my previous comment, ignore it; I misunderstood the question. Zero padding in the output is not allowed.
Jun 29, 2017 at 6:58 answer added kakkarot timeline score: 2
Jun 29, 2017 at 2:33 answer added Value Ink timeline score: 3
Jun 29, 2017 at 2:00 comment added Value Ink Is zero-padding allowed? aka 03rd instead of 3rd
Jun 29, 2017 at 1:18 answer added Digital Trauma timeline score: 5
Jun 29, 2017 at 0:54 answer added darrylyeo timeline score: 5
Jun 28, 2017 at 23:51 answer added Uriel timeline score: 7
Jun 28, 2017 at 23:46 history edited Gareth CC BY-SA 3.0
deleted 2 characters in body; added 1 character in body
Jun 28, 2017 at 23:45 answer added Luke Sawczak timeline score: 5
Jun 28, 2017 at 23:42 history edited Gareth CC BY-SA 3.0
deleted 2 characters in body; added 37 characters in body; added 3 characters in body
Jun 28, 2017 at 23:19 history asked Gareth CC BY-SA 3.0
toggle format

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