Учитывая строку даты в EST, выведите указанную дату в виде строки с добавлением 12 часов к времени.
Часовой пояс должен быть сохранен.
Пример ввода:
"March 7 2009 7:30pm EST"
Пример вывода:
"March 8 2009 7:30am EST"
add12Hours - это функция.
testString: 'assert(typeof add12Hours === "function", "add12Hours is a function.");'
- text: add12Hours(dateString) должен возвращать строку.
testString: 'assert(typeof add12Hours(tests[0]) === "string", "add12Hours(dateString) should return a string.");'
- text: 'add12Hours("" + tests[0] + "") должны возвращать "" + answers[0] + ""'
testString: 'assert(add12Hours(tests[0]) === answers[0], "add12Hours("" + tests[0] + "") should return "" + answers[0] + """);'
- text: 'Должен ли день обмена менять. add12Hours("" + tests[1] + "") должны возвращать "" + answers[1] + ""'
testString: 'assert(add12Hours(tests[1]) === answers[1], "Should handel day change. add12Hours("" + tests[1] + "") should return "" + answers[1] + """);'
- text: 'Должен ли перенос месяца в високосный год. add12Hours("" + tests[2] + "") должны возвращать "" + answers[2] + ""'
testString: 'assert(add12Hours(tests[2]) === answers[2], "Should handel month change in a leap years. add12Hours("" + tests[2] + "") should return "" + answers[2] + """);'
- text: 'Должен ли перенос месяца в течение общих лет. add12Hours("" + tests[3] + "") должны возвращать "" + answers[3] + ""'
testString: 'assert(add12Hours(tests[3]) === answers[3], "Should handel month change in a common years. add12Hours("" + tests[3] + "") should return "" + answers[3] + """);'
- text: 'Должен измениться год выпуска. add12Hours("" + tests[4] + "") должны возвращать "" + answers[4] + ""'
testString: 'assert(add12Hours(tests[4]) === answers[4], "Should handel year change. add12Hours("" + tests[4] + "") should return "" + answers[4] + """);'
```