Timeline for How to add 30 minutes to a JavaScript Date object?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 1, 2017 at 17:08 | comment | added | Ouroborus | @RobG No one's suggesting that only library solutions should be provided. OP can't specifically ask for a library as that would cause the question to be off-topic. Asking "How do I do it with JavaScript?" could be construed as specifying that this is specific to javascript (asking for a solution in a specific language as opposed to asking for a raw code solution) especially given that this detail is repeated in the title and the tags. | |
Mar 1, 2017 at 5:36 | comment | added | RobG | @Ouroborus—libraries should not be the only solution provided if the OP has not asked for a library in the OP or tags. Otherwise, answers can become just a litany of ways to do something in different libraries and the OP is left no wiser to their actual issue (which in this case is fairly trivial to solve). | |
Jul 27, 2016 at 18:33 | comment | added | Ouroborus | @mattpark22 While I understand what you're getting at, a javascript library is still javascript. I could rip out just the relevant pieces of the library and present those as a code solution. OP would have an answer that was javascript, in the sense that you mean it, but would be unaware of a (possibly) acceptable, general purpose solution. Also, adding 30 minutes is not nearly as trivial as most of the answers make it sound, as there are a lot of edge cases not handled by the Date object. For example, the most popular answer breaks when crossing DST boundaries. | |
Jul 27, 2016 at 11:22 | comment | added | mattpark22 | The OP asked for a JavaScript solution, not a framework/library. | |
Jul 26, 2016 at 18:22 | comment | added | Ouroborus | Answers can't improve if you downvote without giving a reason. | |
Jun 16, 2016 at 21:18 | history | answered | Ouroborus | CC BY-SA 3.0 |