chore(i8n,learn): processed translations

This commit is contained in:
Crowdin Bot
2021-02-06 04:42:36 +00:00
committed by Mrugesh Mohapatra
parent 15047f2d90
commit e5c44a3ae5
3274 changed files with 172122 additions and 14164 deletions

View File

@ -1,42 +1,34 @@
---
id: 5966c21cf732a95f1b67dd28
title: 日期操纵
title: Date manipulation
challengeType: 5
videoUrl: ''
forumTopicId: 302244
dashedName: date-manipulation
---
# --description--
任务:
Given a date string in EST, output the given date as a string with 12 hours added to the time. Time zone should be preserved.
给定EST中的日期字符串将给定日期输出为字符串并添加12小时。
Example input: `"March 6 2009 7:30pm EST"`
时区应该保留。
示例输入:
`"March 7 2009 7:30pm EST"`
输出示例:
`"March 8 2009 7:30am EST"`
Example output: `"March 7 2009 7:30am EST"`
# --hints--
`add12Hours`是一个功能。
`add12Hours` should be a function.
```js
assert(typeof add12Hours === 'function');
```
`add12Hours(dateString)`应该返回一个字符串。
`add12Hours(dateString)` should return a string.
```js
assert(typeof add12Hours('January 17 2017 11:43am EST') === 'string');
```
`add12Hours("" + tests[0] + "")`应该返回`"" + answers[0] + ""`
`add12Hours("January 17 2017 11:43am EST")` should return `"January 17 2017 11:43pm EST"`
```js
assert(
@ -44,25 +36,25 @@ assert(
);
```
汉德尔应该改变一天。 `add12Hours("" + tests[1] + "")`应返回`"" + answers[1] + ""`
Should handle day change. `add12Hours("March 6 2009 7:30pm EST")` should return `"March 7 2009 7:30am EST"`
```js
assert(add12Hours('March 7 2009 7:30pm EST') === 'March 8 2009 7:30am EST');
assert(add12Hours('March 6 2009 7:30pm EST') === 'March 7 2009 7:30am EST');
```
汉德尔月份应该在闰年中发生变化。 `add12Hours("" + tests[2] + "")`应返回`"" + answers[2] + ""`
Should handle month change in a leap years. `add12Hours("February 29 2004 9:15pm EST")` should return `"March 1 2004 9:15am EST"`
```js
assert(add12Hours('February 29 2004 9:15pm EST') === 'March 1 2004 9:15am EST');
```
应该在一个共同的年份改变汉德尔月份。 `add12Hours("" + tests[3] + "")`应该返回`"" + answers[3] + ""`
Should handle month change in a common years. `add12Hours("February 28 1999 3:15pm EST")` should return `"March 1 1999 3:15am EST"`
```js
assert(add12Hours('February 28 1999 3:15pm EST') === 'March 1 1999 3:15am EST');
```
汉德尔应该改变一年。 `add12Hours("" + tests[4] + "")`应该返回`"" + answers[4] + ""`
Should handle year change. `add12Hours("December 31 2020 1:45pm EST")` should return `"January 1 2021 1:45am EST"`
```js
assert(