Timeline for How to add 30 minutes to a JavaScript Date object?
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
S May 22, 2019 at 12:52 | history | suggested | hashed_name | CC BY-SA 4.0 |
Update code snippet
|
May 22, 2019 at 12:02 | review | Suggested edits | |||
S May 22, 2019 at 12:52 | |||||
Mar 26, 2019 at 14:19 | comment | added | frido |
@ChrisRae yes, it does. If a parameter you specify is outside of the expected range, setMinutes() attempts to update the date information in the Date object accordingly.
|
|
Sep 20, 2017 at 23:18 | comment | added | Chris Rae | Does this work ok if it loops past the hour? So if I call it at 11:59, does it schedule ok at 12:29? | |
S Aug 24, 2017 at 3:46 | history | suggested | Alexis Tyler | CC BY-SA 3.0 |
Fixed code highlighting.
|
Aug 24, 2017 at 3:13 | review | Suggested edits | |||
S Aug 24, 2017 at 3:46 | |||||
Jul 29, 2009 at 21:38 | comment | added | Tyler Carter | He wanted two date objects. Read the Question. One Date object which is 30 minutes ahead of another date object. | |
Jul 29, 2009 at 21:29 | comment | added | Grant Wagner |
@Chacha102: You don't need two Date objects. var d = new Date(); d.setMinutes(d.getMinutes() + 30);
|
|
Jul 29, 2009 at 3:47 | history | edited | Tyler Carter | CC BY-SA 2.5 |
deleted 6 characters in body; deleted 78 characters in body
|
Jul 29, 2009 at 3:47 | history | undeleted | user122273 | ||
Jul 29, 2009 at 3:39 | history | deleted | user122273 | ||
Jul 29, 2009 at 3:39 | history | answered | Tyler Carter | CC BY-SA 2.5 |