Skip to content

Commit dde850f

Browse files
author
Vadim Averin
authored
Update docs for Datetime::Format (#9641)
1 parent cde1582 commit dde850f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ydb/docs/en/core/yql/reference/yql-core/udf/list/datetime.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,17 +262,17 @@ Get a string representation of a time using an arbitrary formatting string.
262262

263263
### List of functions
264264

265-
* `DateTime::Format(String) -> (Resource<TM>{Flags:AutoMap}) -> String`
265+
* `DateTime::Format(String, alwaysWriteFractionalSeconds:Bool?) -> (Resource<TM>{Flags:AutoMap}) -> String`
266266

267-
A subset of specifiers similar to strptime is implemented for the formatting string.
267+
A set of specifiers is implemented for the formatting string:
268268

269269
* `%%`: % character.
270270
* `%Y`: 4-digit year.
271271
* `%m`: 2-digit month.
272272
* `%d`: 2-digit day.
273273
* `%H`: 2-digit hour.
274274
* `%M`: 2-digit minutes.
275-
* `%S`: 2-digit seconds -- or xx.xxxxxx in the case of non-empty microseconds.
275+
* `%S`: 2-digit seconds -- or xx.xxxxxx in the case of non-empty microseconds (only if `alwaysWriteFractionalSeconds` is not set to `True`).
276276
* `%z`: +hhmm or -hhmm.
277277
* `%Z`: IANA name of the timezone.
278278
* `%b`: A short three-letter English name of the month (Jan).

ydb/docs/ru/core/yql/reference/yql-core/udf/list/datetime.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,17 +269,17 @@ SELECT
269269

270270
### Список функций
271271

272-
* `DateTime::Format(String) -> (Resource<TM>{Flags:AutoMap}) -> String`
272+
* `DateTime::Format(String, alwaysWriteFractionalSeconds:Bool?) -> (Resource<TM>{Flags:AutoMap}) -> String`
273273

274-
Для строки форматирования реализовано подмножество спецификаторов, аналогичных strptime.
274+
Для строки форматирования реализовано множество спецификаторов:
275275

276276
* `%%` - символ %;
277277
* `%Y` - год 4 цифры;
278278
* `%m` - месяц 2 цифры;
279279
* `%d` - день 2 цифры;
280280
* `%H` - час 2 цифры;
281281
* `%M` - минуты 2 цифры;
282-
* `%S` - секунды 2 цифры -- или xx.xxxxxx в случае непустых микросекунд;
282+
* `%S` - секунды 2 цифры -- или xx.xxxxxx в случае непустых микросекунд (и только если флаг `alwaysWriteFractionalSeconds` не выставлен в `True`);
283283
* `%z` - +hhmm or -hhmm;
284284
* `%Z` - IANA имя таймзоны;
285285
* `%b` - короткое трехбуквенное английское название месяца (Jan);

0 commit comments

Comments
 (0)