@arcgis/coding-components 1.0.0-beta.12 → 1.0.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +821 -155
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +851 -185
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +821 -155
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +859 -193
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +859 -193
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +845 -179
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +859 -193
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +859 -193
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +859 -193
- package/package.json +3 -3
|
@@ -221,6 +221,31 @@
|
|
|
221
221
|
"max": 2
|
|
222
222
|
}
|
|
223
223
|
},
|
|
224
|
+
{
|
|
225
|
+
"type": "function",
|
|
226
|
+
"name": "equals",
|
|
227
|
+
"bundle": "core",
|
|
228
|
+
"sinceVersion": "1.24",
|
|
229
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/logical_functions/#equals",
|
|
230
|
+
"description": "Indicates if two values are equal. Object types (i.e. Arrays, Features, Dictionaries, Geometry) will return true only if they are the same object.",
|
|
231
|
+
"examples": "\n##### Пример\n\nCompares if two values are equal\n\n```arcade\nEquals(1, \"1\") // returns false\n\nvar testVal = \"test\";\nEquals(testVal, \"test\") // returns true\n\nvar array1 = Array(5);\nvar array2 = Array(5);\nEquals(array1, array2); // returns false\nEquals(array1, array1); // returns true\n```\n\n",
|
|
232
|
+
"completion": {
|
|
233
|
+
"label": "Equals",
|
|
234
|
+
"detail": "Equals(value1, value2) -> Boolean",
|
|
235
|
+
"insertText": "Equals(${1:value1_}, ${2:value2_})$0",
|
|
236
|
+
"insertTextMode": 2,
|
|
237
|
+
"insertTextFormat": 2,
|
|
238
|
+
"kind": 3,
|
|
239
|
+
"documentation": {
|
|
240
|
+
"kind": "markdown",
|
|
241
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates if two values are equal. Object types (i.e. Arrays, Features, Dictionaries, Geometry) will return true only if they are the same object.\n\n**Параметры**\n\n- **value1**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - The first input value.\n- **value2**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - The second input value.\n\n**Возвращаемое значение**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"parametersInfo": {
|
|
245
|
+
"min": 2,
|
|
246
|
+
"max": 2
|
|
247
|
+
}
|
|
248
|
+
},
|
|
224
249
|
{
|
|
225
250
|
"type": "function",
|
|
226
251
|
"name": "iif",
|
|
@@ -656,7 +681,7 @@
|
|
|
656
681
|
"kind": 3,
|
|
657
682
|
"documentation": {
|
|
658
683
|
"kind": "markdown",
|
|
659
|
-
"value": "**[Начиная с версии 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nСоздает значение хэш-кода для данной переменной.\n\n**Параметр**\n\n- **value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) \\| [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - Хэшированная переменная\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
684
|
+
"value": "**[Начиная с версии 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nСоздает значение хэш-кода для данной переменной.\n\n**Параметр**\n\n- **value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) \\| [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| DateOnly \\| Time - Хэшированная переменная\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
660
685
|
}
|
|
661
686
|
},
|
|
662
687
|
"parametersInfo": {
|
|
@@ -1541,7 +1566,7 @@
|
|
|
1541
1566
|
"bundle": "core",
|
|
1542
1567
|
"link": "https://developers.arcgis.com/arcade/function-reference/text_functions/#text",
|
|
1543
1568
|
"description": "Конвертирует этот аргумент в текстовое значение и дополнительно форматирует ее. При невыполнении возвращает `null`.",
|
|
1544
|
-
"examples": "\n##### Примеры\n\nПишет число слева от запятой\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nОграничивает число слева от запятой\n\n```arcade\nText(123, '00') // '23'\n```\n\nГруппирует число по количеству тысяч\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nОкругляет число до двух знаков после запятой\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nФормат чисел – Денежный\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nОкругляет число до двух знаков после запятой\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nВыделяет значащие цифры и группирует по количеству тысяч\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nФорматирует число и форматирует положительное/отрицательное значение. Если сегмент отрицательный, он служит для указания отрицательного префикса или суффикса.\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nУмножает на 100 и форматирует как проценты\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nФормат даты и времени на данный момент, например, 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nДата, хранящаяся в поле `datetime`, уже представляет местное время, но Arcade предполагает, что это UTC. Сдвигает местное время в UTC, чтобы избежать двойного применения смещения часового пояса.\n\n```arcade\nText(
|
|
1569
|
+
"examples": "\n##### Примеры\n\nПишет число слева от запятой\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nОграничивает число слева от запятой\n\n```arcade\nText(123, '00') // '23'\n```\n\nГруппирует число по количеству тысяч\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nОкругляет число до двух знаков после запятой\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nФормат чисел – Денежный\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nОкругляет число до двух знаков после запятой\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nВыделяет значащие цифры и группирует по количеству тысяч\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nФорматирует число и форматирует положительное/отрицательное значение. Если сегмент отрицательный, он служит для указания отрицательного префикса или суффикса.\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nУмножает на 100 и форматирует как проценты\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nФормат даты и времени на данный момент, например, 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nДата, хранящаяся в поле `datetime`, уже представляет местное время, но Arcade предполагает, что это UTC. Сдвигает местное время в UTC, чтобы избежать двойного применения смещения часового пояса.\n\n```arcade\nText(startDate, 'ddd, MMM D, Y h:mm:ss A ZZZZ')\n// returns Thu, Sep 14, 2023 10:04:49 AM PDT\n```\n\n",
|
|
1545
1570
|
"completion": {
|
|
1546
1571
|
"label": "Text",
|
|
1547
1572
|
"detail": "Text(value, format?) -> Text",
|
|
@@ -2138,6 +2163,31 @@
|
|
|
2138
2163
|
"max": 4
|
|
2139
2164
|
}
|
|
2140
2165
|
},
|
|
2166
|
+
{
|
|
2167
|
+
"type": "function",
|
|
2168
|
+
"name": "featuresetbyrelationshipclass",
|
|
2169
|
+
"bundle": "data-access",
|
|
2170
|
+
"sinceVersion": "1.24",
|
|
2171
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
|
|
2172
|
+
"description": "Returns the related records for a given feature as a FeatureSet based on the class name of the relationship.",
|
|
2173
|
+
"examples": "\n##### Пример\n\nReturns the count of pole inspection related records\n\n```arcade\n// A calculation rule that returns the count of a pole inspection records.\n// When a pole feature is updated the calculation rule reads all its related inspections records from the comments field and returns the total inspection count for that feature.\nvar fsinspected = FeatureSetByRelationshipClass($feature, “pole_inspection”, [“comments”], false);\nreturn Count(fsinspected);\n```\n\n",
|
|
2174
|
+
"completion": {
|
|
2175
|
+
"label": "FeatureSetByRelationshipClass",
|
|
2176
|
+
"detail": "FeatureSetByRelationshipClass(inputFeature, relationshipClass, fieldNames?, includeGeometry?) -> FeatureSet",
|
|
2177
|
+
"insertText": "FeatureSetByRelationshipClass(${1:inputFeature_}, ${2:relationshipClass_})$0",
|
|
2178
|
+
"insertTextMode": 2,
|
|
2179
|
+
"insertTextFormat": 2,
|
|
2180
|
+
"kind": 3,
|
|
2181
|
+
"documentation": {
|
|
2182
|
+
"kind": "markdown",
|
|
2183
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the related records for a given feature as a FeatureSet based on the class name of the relationship.\n\n**Параметры**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The feature from which to fetch related records. This feature must come from a feature service; feature collections are not supported.\n- **relationshipClass**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The class name of the relationship according to the feature service associated with the given feature.\n- **fieldNames** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Text](https://developers.arcgis.com/arcade/guide/types/#text)> - The fields to return in the FeatureSet. This list includes fields from both the relationship table and the input Feature.\n- **includeGeometry** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - Indicates whether to return the geometry for the resulting features.\n\n**Возвращаемое значение**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
2184
|
+
}
|
|
2185
|
+
},
|
|
2186
|
+
"parametersInfo": {
|
|
2187
|
+
"min": 2,
|
|
2188
|
+
"max": 4
|
|
2189
|
+
}
|
|
2190
|
+
},
|
|
2141
2191
|
{
|
|
2142
2192
|
"type": "function",
|
|
2143
2193
|
"name": "featuresetbyrelationshipname",
|
|
@@ -4349,29 +4399,54 @@
|
|
|
4349
4399
|
"id": "date_functions",
|
|
4350
4400
|
"title": "Функции дат",
|
|
4351
4401
|
"items": [
|
|
4402
|
+
{
|
|
4403
|
+
"type": "function",
|
|
4404
|
+
"name": "changetimezone",
|
|
4405
|
+
"bundle": "core",
|
|
4406
|
+
"sinceVersion": "1.24",
|
|
4407
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone",
|
|
4408
|
+
"description": "Changes the time zone used to display the given Date value. If the input `dateValue` has an `unknown` time zone, then the output Date value will display with the same date and time as the input `dateValue`, but will be assigned the `newTimeZone`.",
|
|
4409
|
+
"examples": "\n##### Примеры\n\nChanges the given Date's time zone from `America/New_York` to `America/Los_Angeles`\n\n```arcade\nvar inputDate = Date(2011,10,11,8,0,0,0, \"America/New_York\")\nChangeTimeZone(inputDate, \"America/Los_Angeles\");\n// returns a Date representing Nov 11, 2011, 5:00:00 AM PST\n```\n\nAssigns a Date with an `unknown` time zone to a time offset of `+07:00`\n\n```arcade\nvar inputDate = Date(2011,10,11,8,0,0,0, \"unknown\")\nChangeTimeZone(inputDate, \"+07:00\");\n// returns a Date representing Nov 11, 2011, 8:00:00 AM +07:00\n```\n\n",
|
|
4410
|
+
"completion": {
|
|
4411
|
+
"label": "ChangeTimeZone",
|
|
4412
|
+
"detail": "ChangeTimeZone(dateValue, newTimeZone) -> Date",
|
|
4413
|
+
"insertText": "ChangeTimeZone(${1:dateValue_}, ${2:newTimeZone_})$0",
|
|
4414
|
+
"insertTextMode": 2,
|
|
4415
|
+
"insertTextFormat": 2,
|
|
4416
|
+
"kind": 3,
|
|
4417
|
+
"documentation": {
|
|
4418
|
+
"kind": "markdown",
|
|
4419
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChanges the time zone used to display the given Date value. If the input `dateValue` has an `unknown` time zone, then the output Date value will display with the same date and time as the input `dateValue`, but will be assigned the `newTimeZone`.\n\n**Параметры**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value containing date and time information.\n- **newTimeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The new time zone that will be used to display the given Date value. \nThe time zone must be one of the following:\n - text representing an entry in the [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) (e.g. `America/New_York`)\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n - `system` - time zone will be set to the device or system's local time zone \n - `default` - the time zone of the profile's execution context\n - `UTC`\n - `unknown` - removes time zone information for the given value and displays the date and time as it was defined by the data source\n\n\n**Возвращаемое значение**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
4420
|
+
}
|
|
4421
|
+
},
|
|
4422
|
+
"parametersInfo": {
|
|
4423
|
+
"min": 2,
|
|
4424
|
+
"max": 2
|
|
4425
|
+
}
|
|
4426
|
+
},
|
|
4352
4427
|
[
|
|
4353
4428
|
{
|
|
4354
4429
|
"type": "function",
|
|
4355
4430
|
"name": "date",
|
|
4356
4431
|
"bundle": "core",
|
|
4357
4432
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date1",
|
|
4358
|
-
"description": "
|
|
4359
|
-
"examples": "\n##### Примеры\n\
|
|
4433
|
+
"description": "Creates a Date object from a set of parameters. By default, Dates are created in the time zone of the profile's execution context.",
|
|
4434
|
+
"examples": "\n##### Примеры\n\nCreates a Date representing the given time in the time zone of the profile's execution context running Arcade\n\n```arcade\n// Date that represents Jun 02, 1987, 12:00:00 AM PST\nDate(1987,05,02)\n```\n\nCreates a Date with time defined in a specific time zone\n\n```arcade\nDate(1990, 10, 2, 2, 23, 0, 0, \"America/New_York\");\n // Date represents Nov 2, 1990, 2:23:00 AM EST\n```\n\n",
|
|
4360
4435
|
"completion": {
|
|
4361
4436
|
"label": "Date",
|
|
4362
|
-
"detail": "Date(year, month, day, hour?, minute?, second?, millisecond?) -> Date",
|
|
4437
|
+
"detail": "Date(year, month, day, hour?, minute?, second?, millisecond?, timeZone?) -> Date",
|
|
4363
4438
|
"insertText": "Date(${1:year_}, ${2:month_}, ${3:day_})$0",
|
|
4364
4439
|
"insertTextMode": 2,
|
|
4365
4440
|
"insertTextFormat": 2,
|
|
4366
4441
|
"kind": 3,
|
|
4367
4442
|
"documentation": {
|
|
4368
4443
|
"kind": "markdown",
|
|
4369
|
-
"value": "
|
|
4444
|
+
"value": "Creates a Date object from a set of parameters. By default, Dates are created in the time zone of the profile's execution context.\n\n**Параметры**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - A number representing a year.\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The month (0-11) where `0` is January and `11` is December.\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The day of the month (1-31).\n- **hour** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The hour of the day (0-23).\n- **minute** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The minute of the hour (0-59).\n- **second** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The second of the minute (0-59).\n- **millisecond** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The millisecond of the second (0-999).\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _Since 1.24_ The time zone of the Date. If not specified, the Date will be created in the default time zone of the profile's execution context. \nPossible values:\n - text representing an entry in the [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) (e.g. `America/New_York`)\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n - `system` - time zone will be set to the device or system's local time zone \n - `default` - the time zone of the profile's execution context\n - `UTC`\n - `unknown` - removes time zone information for the given value and displays the date and time as it was defined by the data source\n\n\n**Возвращаемое значение**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
4370
4445
|
}
|
|
4371
4446
|
},
|
|
4372
4447
|
"parametersInfo": {
|
|
4373
4448
|
"min": 3,
|
|
4374
|
-
"max":
|
|
4449
|
+
"max": 8
|
|
4375
4450
|
}
|
|
4376
4451
|
},
|
|
4377
4452
|
{
|
|
@@ -4379,8 +4454,8 @@
|
|
|
4379
4454
|
"name": "date",
|
|
4380
4455
|
"bundle": "core",
|
|
4381
4456
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date2",
|
|
4382
|
-
"description": "
|
|
4383
|
-
"examples": "\n#####
|
|
4457
|
+
"description": "Creates a Date with the given Unix epoch number. By default, the Date will display in the time zone of the profile's execution context. If no epoch is provided, creates a Date at the current date and time in the default time zone of the profile.",
|
|
4458
|
+
"examples": "\n##### Примеры\n\nMilliseconds since January 1, 1970\n\n```arcade\nDate(1476987783555) // 'Thu Oct 20 2016 11:23:03 GMT-0700 (PDT)'\n```\n\nCreates a Date representing the current time in the time zone of the profile's execution context running Arcade\n\n```arcade\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nDate()\n```\n\n",
|
|
4384
4459
|
"completion": {
|
|
4385
4460
|
"label": "Date",
|
|
4386
4461
|
"detail": "Date(epoch?) -> Date",
|
|
@@ -4390,7 +4465,7 @@
|
|
|
4390
4465
|
"kind": 3,
|
|
4391
4466
|
"documentation": {
|
|
4392
4467
|
"kind": "markdown",
|
|
4393
|
-
"value": "
|
|
4468
|
+
"value": "Creates a Date with the given Unix epoch number. By default, the Date will display in the time zone of the profile's execution context. If no epoch is provided, creates a Date at the current date and time in the default time zone of the profile.\n\n**Параметр**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Возвращаемое значение**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
4394
4469
|
}
|
|
4395
4470
|
},
|
|
4396
4471
|
"parametersInfo": {
|
|
@@ -4403,8 +4478,8 @@
|
|
|
4403
4478
|
"name": "date",
|
|
4404
4479
|
"bundle": "core",
|
|
4405
4480
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date3",
|
|
4406
|
-
"description": "
|
|
4407
|
-
"examples": "\n#####
|
|
4481
|
+
"description": "Creates a Date value from an ISO 8601 text value. If a UTC offset is provided, the date will still be displayed in the time zone of the profile. If no text value is provided, creates a date at the current date and time in the time zone of the profile.",
|
|
4482
|
+
"examples": "\n##### Примеры\n\nCreates a Date from an ISO 8601 text value with a known time offset\n\n```arcade\nDate('2016-10-20T17:41:37+00:00') // 'Thu Oct 20 2016 10:41:37 GMT-0700 (PDT)'\n```\n\nCreates a Date from an ISO 8601 text value with an unknown time offset\n\n```arcade\nDate('2016-10-20T17:41:37') // 'Thu Oct 20 2016 5:41:37 PM PDT'\n```\n\n",
|
|
4408
4483
|
"completion": {
|
|
4409
4484
|
"label": "Date",
|
|
4410
4485
|
"detail": "Date(timestamp?) -> Date",
|
|
@@ -4414,154 +4489,386 @@
|
|
|
4414
4489
|
"kind": 3,
|
|
4415
4490
|
"documentation": {
|
|
4416
4491
|
"kind": "markdown",
|
|
4417
|
-
"value": "
|
|
4492
|
+
"value": "Creates a Date value from an ISO 8601 text value. If a UTC offset is provided, the date will still be displayed in the time zone of the profile. If no text value is provided, creates a date at the current date and time in the time zone of the profile.\n\n**Параметр**\n\n- **timestamp** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - An ISO 8601 text value to be converted into a Date.\n\n**Возвращаемое значение**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
4418
4493
|
}
|
|
4419
4494
|
},
|
|
4420
4495
|
"parametersInfo": {
|
|
4421
4496
|
"min": 0,
|
|
4422
4497
|
"max": 1
|
|
4423
4498
|
}
|
|
4424
|
-
}
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4499
|
+
},
|
|
4500
|
+
{
|
|
4501
|
+
"type": "function",
|
|
4502
|
+
"name": "date",
|
|
4503
|
+
"bundle": "core",
|
|
4504
|
+
"sinceVersion": "1.24",
|
|
4505
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date4",
|
|
4506
|
+
"description": "Creates a Date from a DateOnly value, with an optional Time and time zone value.",
|
|
4507
|
+
"examples": "\n##### Пример\n\nCreates a Date from a DateOnly and time type\n\n```arcade\nDate(DateOnly(2022,10,11), Time(\"11:20 am\"))\n// returns a Date representing Nov 11, 2022, 11:20:00 AM in an unknown time zone\n```\n\n",
|
|
4508
|
+
"completion": {
|
|
4509
|
+
"label": "Date",
|
|
4510
|
+
"detail": "Date(dateOnlyValue, timeValue?, timeZone?) -> Date",
|
|
4511
|
+
"insertText": "Date(${1:dateOnlyValue_})$0",
|
|
4512
|
+
"insertTextMode": 2,
|
|
4513
|
+
"insertTextFormat": 2,
|
|
4514
|
+
"kind": 3,
|
|
4515
|
+
"documentation": {
|
|
4516
|
+
"kind": "markdown",
|
|
4517
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Date from a DateOnly value, with an optional Time and time zone value.\n\n**Параметры**\n\n- **dateOnlyValue**: DateOnly - The DateOnly value from which to create a Date value.\n- **timeValue** (_Optional_): Time - The Time value for the Date. If not specified, the Date will be created with a time of `00:00:00`.\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The time zone of the Date. If not specified, the Date will be created in the `unknown` time zone. \nPossible values:\n - text representing an entry in the [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) (e.g. `America/New_York`)\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n - `system` - time zone will be set to the device or system's local time zone \n - `default` - the time zone of the profile's execution context\n - `UTC`\n - `unknown` - removes time zone information for the given value and displays the date and time as it was defined by the data source\n\n\n**Возвращаемое значение**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
4518
|
+
}
|
|
4519
|
+
},
|
|
4520
|
+
"parametersInfo": {
|
|
4521
|
+
"min": 1,
|
|
4522
|
+
"max": 3
|
|
4443
4523
|
}
|
|
4444
4524
|
},
|
|
4445
|
-
|
|
4446
|
-
"
|
|
4447
|
-
"
|
|
4525
|
+
{
|
|
4526
|
+
"type": "function",
|
|
4527
|
+
"name": "date",
|
|
4528
|
+
"bundle": "core",
|
|
4529
|
+
"sinceVersion": "1.24",
|
|
4530
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date5",
|
|
4531
|
+
"description": "Creates a copy of the given Date.",
|
|
4532
|
+
"examples": "\n##### Пример\n\nCreates a copy of the current Date value\n\n```arcade\nvar copiedDate = Date(Now())\n```\n\n",
|
|
4533
|
+
"completion": {
|
|
4534
|
+
"label": "Date",
|
|
4535
|
+
"detail": "Date(dateValue) -> Date",
|
|
4536
|
+
"insertText": "Date(${1:dateValue_})$0",
|
|
4537
|
+
"insertTextMode": 2,
|
|
4538
|
+
"insertTextFormat": 2,
|
|
4539
|
+
"kind": 3,
|
|
4540
|
+
"documentation": {
|
|
4541
|
+
"kind": "markdown",
|
|
4542
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of the given Date.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date to copy.\n\n**Возвращаемое значение**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
4543
|
+
}
|
|
4544
|
+
},
|
|
4545
|
+
"parametersInfo": {
|
|
4546
|
+
"min": 1,
|
|
4547
|
+
"max": 1
|
|
4548
|
+
}
|
|
4448
4549
|
}
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
"
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
"
|
|
4466
|
-
|
|
4550
|
+
],
|
|
4551
|
+
[
|
|
4552
|
+
{
|
|
4553
|
+
"type": "function",
|
|
4554
|
+
"name": "dateadd",
|
|
4555
|
+
"bundle": "core",
|
|
4556
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd1",
|
|
4557
|
+
"description": "Adds a specified amount of time in the given units to a Date and returns a new Date. If the Date has an IANA time zone, then daylight saving and other time zone driven logic will apply.",
|
|
4558
|
+
"examples": "\n##### Пример\n\nAdds 7 days to the given Date\n\n```arcade\nvar startDate = Date(2023, 9, 1, 12, 00);\nvar oneWeekLater = DateAdd(startDate, 7, 'days');\nreturn oneWeekLater;\n// returns a Date representing Oct 8, 2023, 12:00:00 PM PDT\n```\n\n",
|
|
4559
|
+
"completion": {
|
|
4560
|
+
"label": "DateAdd",
|
|
4561
|
+
"detail": "DateAdd(dateValue, addValue, units?) -> Date",
|
|
4562
|
+
"insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
|
|
4563
|
+
"insertTextMode": 2,
|
|
4564
|
+
"insertTextFormat": 2,
|
|
4565
|
+
"kind": 3,
|
|
4566
|
+
"documentation": {
|
|
4567
|
+
"kind": "markdown",
|
|
4568
|
+
"value": "Adds a specified amount of time in the given units to a Date and returns a new Date. If the Date has an IANA time zone, then daylight saving and other time zone driven logic will apply.\n\n**Параметры**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The input Date to which to add time.\n- **addValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The value to add to the Date in the given units.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units of the number to add to the Date. Default is `milliseconds`. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`\n\n**Возвращаемое значение**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
4569
|
+
}
|
|
4570
|
+
},
|
|
4571
|
+
"parametersInfo": {
|
|
4572
|
+
"min": 2,
|
|
4573
|
+
"max": 3
|
|
4467
4574
|
}
|
|
4468
4575
|
},
|
|
4469
|
-
|
|
4470
|
-
"
|
|
4471
|
-
"
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
"
|
|
4576
|
+
{
|
|
4577
|
+
"type": "function",
|
|
4578
|
+
"name": "dateadd",
|
|
4579
|
+
"bundle": "core",
|
|
4580
|
+
"sinceVersion": "1.24",
|
|
4581
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd2",
|
|
4582
|
+
"description": "Adds a specified amount of time in the given units to a DateOnly value and returns a new DateOnly value.",
|
|
4583
|
+
"examples": "\n##### Примеры\n\nAdds 7 days to the Date in the provided field\n\n```arcade\nvar startDate = DateOnly(2023,5,4); // equivalent to 2023-06-04\nvar oneWeekLater = DateAdd(startDate, 7, 'days');\nreturn oneWeekLater;\n// returns 2023-06-11\n```\n\nAdds 12 hours to the Date in the provided field\n\n```arcade\nvar startDate = DateOnly(2023,5,4); // equivalent to 2023-06-04\nvar hoursLater = DateAdd(startDate, 12, 'hours');\nreturn hoursLater;\n// returns the original start date, 2023-06-04\n// since 12 hours < 1 day, the DateOnly input is not changed\n```\n\n",
|
|
4584
|
+
"completion": {
|
|
4585
|
+
"label": "DateAdd",
|
|
4586
|
+
"detail": "DateAdd(dateOnlyValue, addValue, units?) -> DateOnly",
|
|
4587
|
+
"insertText": "DateAdd(${1:dateOnlyValue_}, ${2:addValue_})$0",
|
|
4588
|
+
"insertTextMode": 2,
|
|
4589
|
+
"insertTextFormat": 2,
|
|
4590
|
+
"kind": 3,
|
|
4591
|
+
"documentation": {
|
|
4592
|
+
"kind": "markdown",
|
|
4593
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nAdds a specified amount of time in the given units to a DateOnly value and returns a new DateOnly value.\n\n**Параметры**\n\n- **dateOnlyValue**: DateOnly - The input DateOnly value to which to add time.\n- **addValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The value to add to the date in the given units. For DateOnly inputs, this value will be rounded down to the nearest day based on a 24-hour interval. If the value to be added is less than 24 hours, then no value will be added to the DateOnly input.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units of the number to add to the date. Default is `milliseconds`. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`\n\n**Возвращаемое значение**: DateOnly"
|
|
4594
|
+
}
|
|
4595
|
+
},
|
|
4596
|
+
"parametersInfo": {
|
|
4597
|
+
"min": 2,
|
|
4598
|
+
"max": 3
|
|
4491
4599
|
}
|
|
4492
4600
|
},
|
|
4493
|
-
|
|
4494
|
-
"
|
|
4495
|
-
"
|
|
4601
|
+
{
|
|
4602
|
+
"type": "function",
|
|
4603
|
+
"name": "dateadd",
|
|
4604
|
+
"bundle": "core",
|
|
4605
|
+
"sinceVersion": "1.24",
|
|
4606
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd3",
|
|
4607
|
+
"description": "Adds a specified amount of time in the given units to a Time value and returns a new Time value.",
|
|
4608
|
+
"examples": "\n##### Примеры\n\nAdds 7 hours to the given Time\n\n```arcade\nvar startTime = Time(11,30); // equivalent to 11:30:00\nvar hoursLater = DateAdd(startTime, 7, 'hours');\nreturn hoursLater;\n// returns 18:30:00\n```\n\nAdds 90 seconds to the given Time\n\n```arcade\nvar startTime = Time(11,30); // equivalent to 11:30:00\nvar secondsLater = DateAdd(startTime, 90, \"seconds\");\nreturn secondsLater;\n// returns 11:31:30\n```\n\nAdds 25 hours to the given Time\n\n```arcade\nvar startTime = Time(11,30); // equivalent to 11:30:00\nvar hoursLater = DateAdd(startTime, 25, 'hours');\nreturn hoursLater;\n// returns 12:30:00\n```\n\n",
|
|
4609
|
+
"completion": {
|
|
4610
|
+
"label": "DateAdd",
|
|
4611
|
+
"detail": "DateAdd(timeValue, addValue, units?) -> Time",
|
|
4612
|
+
"insertText": "DateAdd(${1:timeValue_}, ${2:addValue_})$0",
|
|
4613
|
+
"insertTextMode": 2,
|
|
4614
|
+
"insertTextFormat": 2,
|
|
4615
|
+
"kind": 3,
|
|
4616
|
+
"documentation": {
|
|
4617
|
+
"kind": "markdown",
|
|
4618
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nAdds a specified amount of time in the given units to a Time value and returns a new Time value.\n\n**Параметры**\n\n- **timeValue**: Time - The input Time value to which to add time.\n- **addValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The value to add to the time in the given units.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units of the number to add to the date. Default is `milliseconds`. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`\n\n**Возвращаемое значение**: Time"
|
|
4619
|
+
}
|
|
4620
|
+
},
|
|
4621
|
+
"parametersInfo": {
|
|
4622
|
+
"min": 2,
|
|
4623
|
+
"max": 3
|
|
4624
|
+
}
|
|
4496
4625
|
}
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
"
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
"
|
|
4514
|
-
|
|
4626
|
+
],
|
|
4627
|
+
[
|
|
4628
|
+
{
|
|
4629
|
+
"type": "function",
|
|
4630
|
+
"name": "datediff",
|
|
4631
|
+
"bundle": "core",
|
|
4632
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
|
|
4633
|
+
"description": "Subtracts two Dates, and returns the difference in the specified units.",
|
|
4634
|
+
"examples": "\n##### Примеры\n\nSubtracts two Dates and returns the age\n\n```arcade\nvar startDate = Date($feature.startDateField);\nvar endDate = Date($feature.endDateField);\nvar age = DateDiff(endDate, startDate, 'years');\nreturn age;\n```\n\nSubtracts two Dates and returns the difference. Since the time zone is Los Angeles\n\n```arcade\nvar startDate = Date(2022,2,23,2,23,22,0, \"America/New_York\"); // Mar 23, 2022, 2:23:22 AM EDT\nvar endDate = Date(2022,2,23,5,23,22,0, \"unknown\"); // Mar 23, 2022, 5:23:22 AM\n\nDateDiff(endDate, startDate, 'hours')\n// returns 3, since the Date with an unknown time zone is assumed to be New York time before the difference is calculated\n\nDateDiff(endDate, startDate, 'hours', \"America/Los_Angeles\");\n// returns 6, since the Date with an unknown time zone is now considered to be Los Angeles time before the difference is calculated\n```\n\n",
|
|
4635
|
+
"completion": {
|
|
4636
|
+
"label": "DateDiff",
|
|
4637
|
+
"detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
|
|
4638
|
+
"insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
|
|
4639
|
+
"insertTextMode": 2,
|
|
4640
|
+
"insertTextFormat": 2,
|
|
4641
|
+
"kind": 3,
|
|
4642
|
+
"documentation": {
|
|
4643
|
+
"kind": "markdown",
|
|
4644
|
+
"value": "Subtracts two Dates, and returns the difference in the specified units.\n\n**Параметры**\n\n- **date1**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date value from which to subtract a second Date.\n- **date2**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date value to subtract from the first given Date.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units in which to return the difference of the two given Dates. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`. The default value is `milliseconds`.\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _Since version 1.24_ The time zone to assign to input Dates with an unknown time zone. If not specified, then the following will happen: (1) If one input has a defined time zone and the other is unknown, then the value with the unknown time zone will assume a time zone that matches the other input. (2) If both inputs are unknown time zones, then the DateDiff will be calculated on both Dates as if they were defined in the same time zone. \nPossible values: \n - text representing an entry in the [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) (e.g. `America/New_York`)\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n - `system` - time zone will be set to the device or system's local time zone \n - `default` - the time zone of the profile's execution context\n - `UTC`\n - `unknown` - removes time zone information for the given value and displays the date and time as it was defined by the data source\n\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4645
|
+
}
|
|
4646
|
+
},
|
|
4647
|
+
"parametersInfo": {
|
|
4648
|
+
"min": 2,
|
|
4649
|
+
"max": 4
|
|
4515
4650
|
}
|
|
4516
4651
|
},
|
|
4517
|
-
|
|
4518
|
-
"
|
|
4519
|
-
"
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
"
|
|
4538
|
-
"
|
|
4539
|
-
"
|
|
4652
|
+
{
|
|
4653
|
+
"type": "function",
|
|
4654
|
+
"name": "datediff",
|
|
4655
|
+
"bundle": "core",
|
|
4656
|
+
"sinceVersion": "1.24",
|
|
4657
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff2",
|
|
4658
|
+
"description": "Subtracts two DateOnly values, and returns the difference in the specified units.",
|
|
4659
|
+
"examples": "\n##### Пример\n\nSubtracts two DateOnly values and returns the difference in years\n\n```arcade\nvar startDate = DateOnly(1996,11,10);\nvar endDate = DateOnly(); // today's date\nvar age = DateDiff(endDate, startDate, 'years');\nFloor(age); // round down\n// returns 26\n```\n\n",
|
|
4660
|
+
"completion": {
|
|
4661
|
+
"label": "DateDiff",
|
|
4662
|
+
"detail": "DateDiff(dateOnly1, dateOnly2, units?) -> Number",
|
|
4663
|
+
"insertText": "DateDiff(${1:dateOnly1_}, ${2:dateOnly2_})$0",
|
|
4664
|
+
"insertTextMode": 2,
|
|
4665
|
+
"insertTextFormat": 2,
|
|
4666
|
+
"kind": 3,
|
|
4667
|
+
"documentation": {
|
|
4668
|
+
"kind": "markdown",
|
|
4669
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nSubtracts two DateOnly values, and returns the difference in the specified units.\n\n**Параметры**\n\n- **dateOnly1**: DateOnly - The DateOnly value from which to subtract a second DateOnly value.\n- **dateOnly2**: DateOnly - The DateOnly value to subtract from the first given DateOnly value.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units in which to return the difference of the two given DateOnly values. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`. The default value is `milliseconds`.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4670
|
+
}
|
|
4671
|
+
},
|
|
4672
|
+
"parametersInfo": {
|
|
4673
|
+
"min": 2,
|
|
4674
|
+
"max": 3
|
|
4540
4675
|
}
|
|
4541
4676
|
},
|
|
4542
|
-
|
|
4543
|
-
"
|
|
4544
|
-
"
|
|
4677
|
+
{
|
|
4678
|
+
"type": "function",
|
|
4679
|
+
"name": "datediff",
|
|
4680
|
+
"bundle": "core",
|
|
4681
|
+
"sinceVersion": "1.24",
|
|
4682
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff3",
|
|
4683
|
+
"description": "Subtracts two Time values, and returns the difference in the specified units.",
|
|
4684
|
+
"examples": "\n##### Пример\n\nSubtracts two Time values and returns the difference in hours\n\n```arcade\nDateDiff(Time(23,0), Time(9,0), 'hours')\n// returns 14\n```\n\n",
|
|
4685
|
+
"completion": {
|
|
4686
|
+
"label": "DateDiff",
|
|
4687
|
+
"detail": "DateDiff(time1, time2, units?) -> Number",
|
|
4688
|
+
"insertText": "DateDiff(${1:time1_}, ${2:time2_})$0",
|
|
4689
|
+
"insertTextMode": 2,
|
|
4690
|
+
"insertTextFormat": 2,
|
|
4691
|
+
"kind": 3,
|
|
4692
|
+
"documentation": {
|
|
4693
|
+
"kind": "markdown",
|
|
4694
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nSubtracts two Time values, and returns the difference in the specified units.\n\n**Параметры**\n\n- **time1**: Time - The Time value from which to subtract a second Time value.\n- **time2**: Time - The Time value to subtract from the first given Time value.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units in which to return the difference of the two given Time values. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`. The default value is `milliseconds`.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4695
|
+
}
|
|
4696
|
+
},
|
|
4697
|
+
"parametersInfo": {
|
|
4698
|
+
"min": 2,
|
|
4699
|
+
"max": 3
|
|
4700
|
+
}
|
|
4545
4701
|
}
|
|
4546
|
-
|
|
4547
|
-
|
|
4702
|
+
],
|
|
4703
|
+
[
|
|
4704
|
+
{
|
|
4705
|
+
"type": "function",
|
|
4706
|
+
"name": "dateonly",
|
|
4707
|
+
"bundle": "core",
|
|
4708
|
+
"sinceVersion": "1.24",
|
|
4709
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly1",
|
|
4710
|
+
"description": "Creates a DateOnly value based on the current date in the time zone of the profile's execution context.",
|
|
4711
|
+
"examples": "\n##### Пример\n\nReturns the current DateOnly (no time)\n\n```arcade\nDateOnly()\n// returns the current date, i.e. 2023-09-12\n```\n\n",
|
|
4712
|
+
"completion": {
|
|
4713
|
+
"label": "DateOnly",
|
|
4714
|
+
"detail": "DateOnly() -> DateOnly",
|
|
4715
|
+
"insertText": "DateOnly($0)",
|
|
4716
|
+
"insertTextMode": 2,
|
|
4717
|
+
"insertTextFormat": 2,
|
|
4718
|
+
"kind": 3,
|
|
4719
|
+
"documentation": {
|
|
4720
|
+
"kind": "markdown",
|
|
4721
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value based on the current date in the time zone of the profile's execution context.\n\n**Возвращаемое значение**: DateOnly"
|
|
4722
|
+
}
|
|
4723
|
+
},
|
|
4724
|
+
"parametersInfo": {
|
|
4725
|
+
"min": 0,
|
|
4726
|
+
"max": 0
|
|
4727
|
+
}
|
|
4728
|
+
},
|
|
4729
|
+
{
|
|
4730
|
+
"type": "function",
|
|
4731
|
+
"name": "dateonly",
|
|
4732
|
+
"bundle": "core",
|
|
4733
|
+
"sinceVersion": "1.24",
|
|
4734
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly2",
|
|
4735
|
+
"description": "Creates a DateOnly value from a given date.",
|
|
4736
|
+
"examples": "\n##### Пример\n\nReturns the DateOnly from the given date\n\n```arcade\nDateOnly(Date(2008,10,11,10,30));\n// returns 2008-11-11\n```\n\n",
|
|
4737
|
+
"completion": {
|
|
4738
|
+
"label": "DateOnly",
|
|
4739
|
+
"detail": "DateOnly(dateValue) -> DateOnly",
|
|
4740
|
+
"insertText": "DateOnly(${1:dateValue_})$0",
|
|
4741
|
+
"insertTextMode": 2,
|
|
4742
|
+
"insertTextFormat": 2,
|
|
4743
|
+
"kind": 3,
|
|
4744
|
+
"documentation": {
|
|
4745
|
+
"kind": "markdown",
|
|
4746
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from a given date.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to create the DateOnly value.\n\n**Возвращаемое значение**: DateOnly"
|
|
4747
|
+
}
|
|
4748
|
+
},
|
|
4749
|
+
"parametersInfo": {
|
|
4750
|
+
"min": 1,
|
|
4751
|
+
"max": 1
|
|
4752
|
+
}
|
|
4753
|
+
},
|
|
4754
|
+
{
|
|
4755
|
+
"type": "function",
|
|
4756
|
+
"name": "dateonly",
|
|
4757
|
+
"bundle": "core",
|
|
4758
|
+
"sinceVersion": "1.24",
|
|
4759
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly3",
|
|
4760
|
+
"description": "Creates a DateOnly date with the given Unix epoch number.",
|
|
4761
|
+
"examples": "\n##### Пример\n\nReturns the DateOnly from the number of milliseconds since January 1, 1970\n\n```arcade\nDateOnly(1476987783555);\n// returns 2016-10-20\n```\n\n",
|
|
4762
|
+
"completion": {
|
|
4763
|
+
"label": "DateOnly",
|
|
4764
|
+
"detail": "DateOnly(epoch) -> DateOnly",
|
|
4765
|
+
"insertText": "DateOnly(${1:epoch_})$0",
|
|
4766
|
+
"insertTextMode": 2,
|
|
4767
|
+
"insertTextFormat": 2,
|
|
4768
|
+
"kind": 3,
|
|
4769
|
+
"documentation": {
|
|
4770
|
+
"kind": "markdown",
|
|
4771
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly date with the given Unix epoch number.\n\n**Параметр**\n\n- **epoch**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Возвращаемое значение**: DateOnly"
|
|
4772
|
+
}
|
|
4773
|
+
},
|
|
4774
|
+
"parametersInfo": {
|
|
4775
|
+
"min": 1,
|
|
4776
|
+
"max": 1
|
|
4777
|
+
}
|
|
4778
|
+
},
|
|
4779
|
+
{
|
|
4780
|
+
"type": "function",
|
|
4781
|
+
"name": "dateonly",
|
|
4782
|
+
"bundle": "core",
|
|
4783
|
+
"sinceVersion": "1.24",
|
|
4784
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly4",
|
|
4785
|
+
"description": "Creates a DateOnly value from inputs representing the year, month, and day.",
|
|
4786
|
+
"examples": "\n##### Пример\n\nCreates a DateOnly value from inputs representing the year, month, and day\n\n```arcade\nDateOnly(1996, 11, 10)\n// returns 1996-12-10\n```\n\n",
|
|
4787
|
+
"completion": {
|
|
4788
|
+
"label": "DateOnly",
|
|
4789
|
+
"detail": "DateOnly(year, month, day) -> DateOnly",
|
|
4790
|
+
"insertText": "DateOnly(${1:year_}, ${2:month_}, ${3:day_})$0",
|
|
4791
|
+
"insertTextMode": 2,
|
|
4792
|
+
"insertTextFormat": 2,
|
|
4793
|
+
"kind": 3,
|
|
4794
|
+
"documentation": {
|
|
4795
|
+
"kind": "markdown",
|
|
4796
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from inputs representing the year, month, and day.\n\n**Параметры**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - A number representing a year.\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The month (0-11) where `0` is January and `11` is December.\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The day of the month (1-31).\n\n**Возвращаемое значение**: DateOnly"
|
|
4797
|
+
}
|
|
4798
|
+
},
|
|
4799
|
+
"parametersInfo": {
|
|
4800
|
+
"min": 3,
|
|
4801
|
+
"max": 3
|
|
4802
|
+
}
|
|
4803
|
+
},
|
|
4804
|
+
{
|
|
4805
|
+
"type": "function",
|
|
4806
|
+
"name": "dateonly",
|
|
4807
|
+
"bundle": "core",
|
|
4808
|
+
"sinceVersion": "1.24",
|
|
4809
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly5",
|
|
4810
|
+
"description": "Creates a DateOnly value from a text input representing an ISO formatted date, or another formatted text with an additional input indicating the date's format.",
|
|
4811
|
+
"examples": "\n##### Примеры\n\nCreates a DateOnly value from a text value representing the date\n\n```arcade\nDateOnly(\"2023-05-11T13:43:18.990+01:00\");\n// returns 2023-05-11\n```\n\nCreates a DateOnly value from a text value representing the date in the given format\n\n```arcade\nDateOnly(\"10 Jan 2022\",\"D MMM Y\")\n// returns 2022-01-10\n```\n\n",
|
|
4812
|
+
"completion": {
|
|
4813
|
+
"label": "DateOnly",
|
|
4814
|
+
"detail": "DateOnly(dateValue, format?) -> DateOnly",
|
|
4815
|
+
"insertText": "DateOnly(${1:dateValue_})$0",
|
|
4816
|
+
"insertTextMode": 2,
|
|
4817
|
+
"insertTextFormat": 2,
|
|
4818
|
+
"kind": 3,
|
|
4819
|
+
"documentation": {
|
|
4820
|
+
"kind": "markdown",
|
|
4821
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from a text input representing an ISO formatted date, or another formatted text with an additional input indicating the date's format.\n\n**Параметры**\n\n- **dateValue**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - A text value representing a date. This should either be an ISO formatted date or another formatted text representing a date. If this value does not follow ISO format, the `format` parameter must be defined indicating the date's format.\n- **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - A text value indicating the format of the `dateValue` input. \nPossible values: \n - `D`: Day of the month, not padded (1 - 31) \n - `DD`: Day of the month, padded (01 - 31) \n - `DDD`: Ordinal day of the year (1 - 365) \n - `d`: Day of the week (1 - 7) \n - `ddd`: Abbreviated day of the week (e.g. Mon) \n - `dddd`: Full day of the week (e.g. Monday) \n - `M`: Month number (1 - 12) \n - `MM`: Month number, padded (01 - 12) \n - `MMM`: Abbreviated month name (e.g. Jan) \n - `MMMM`: Full month name (e.g. January) \n - `Y`: Full year \n - `YY`: Two-digit year \n\n\n**Возвращаемое значение**: DateOnly"
|
|
4822
|
+
}
|
|
4823
|
+
},
|
|
4824
|
+
"parametersInfo": {
|
|
4825
|
+
"min": 1,
|
|
4826
|
+
"max": 2
|
|
4827
|
+
}
|
|
4828
|
+
},
|
|
4829
|
+
{
|
|
4830
|
+
"type": "function",
|
|
4831
|
+
"name": "dateonly",
|
|
4832
|
+
"bundle": "core",
|
|
4833
|
+
"sinceVersion": "1.24",
|
|
4834
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly6",
|
|
4835
|
+
"description": "Creates a copy of a DateOnly value.",
|
|
4836
|
+
"examples": "\n##### Пример\n\nCreates a copy of DateOnly value\n\n```arcade\nvar originalDateOnly = DateOnly(1996,11,10)\nvar copiedDateOnly = DateOnly(originalDateOnly)\nreturn copiedDateOnly;\n```\n\n",
|
|
4837
|
+
"completion": {
|
|
4838
|
+
"label": "DateOnly",
|
|
4839
|
+
"detail": "DateOnly(dateOnlyValue) -> DateOnly",
|
|
4840
|
+
"insertText": "DateOnly(${1:dateOnlyValue_})$0",
|
|
4841
|
+
"insertTextMode": 2,
|
|
4842
|
+
"insertTextFormat": 2,
|
|
4843
|
+
"kind": 3,
|
|
4844
|
+
"documentation": {
|
|
4845
|
+
"kind": "markdown",
|
|
4846
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of a DateOnly value.\n\n**Параметр**\n\n- **dateOnlyValue**: DateOnly - The DateOnly value to copy.\n\n**Возвращаемое значение**: DateOnly"
|
|
4847
|
+
}
|
|
4848
|
+
},
|
|
4849
|
+
"parametersInfo": {
|
|
4850
|
+
"min": 1,
|
|
4851
|
+
"max": 1
|
|
4852
|
+
}
|
|
4853
|
+
}
|
|
4854
|
+
],
|
|
4855
|
+
{
|
|
4548
4856
|
"type": "function",
|
|
4549
|
-
"name": "
|
|
4857
|
+
"name": "day",
|
|
4550
4858
|
"bundle": "core",
|
|
4551
|
-
"
|
|
4552
|
-
"
|
|
4553
|
-
"
|
|
4554
|
-
"examples": "\n##### Пример\n\nПолучает неделю для заданной даты на основании стандарта ISO 8601. Возвращает `1`, так как эта дата входит в первую неделю следующего года.\n\n```arcade\nISOWeek(Date(1980, 11, 31))\n```\n\n",
|
|
4859
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
|
|
4860
|
+
"description": "Возвращает день месяца заданной даты.",
|
|
4861
|
+
"examples": "\n##### Примеры\n\nПолучает день месяца текущей даты\n\n```arcade\nDay(Now())\n```\n\nReturns the day of the month from a DateOnly value\n\n```arcade\nDay(DateOnly(1996, 11, 10))\n// returns 10\n```\n\n",
|
|
4555
4862
|
"completion": {
|
|
4556
|
-
"label": "
|
|
4557
|
-
"detail": "
|
|
4558
|
-
"insertText": "
|
|
4863
|
+
"label": "Day",
|
|
4864
|
+
"detail": "Day(dateValue) -> Number",
|
|
4865
|
+
"insertText": "Day(${1:dateValue_})$0",
|
|
4559
4866
|
"insertTextMode": 2,
|
|
4560
4867
|
"insertTextFormat": 2,
|
|
4561
4868
|
"kind": 3,
|
|
4562
4869
|
"documentation": {
|
|
4563
4870
|
"kind": "markdown",
|
|
4564
|
-
"value": "
|
|
4871
|
+
"value": "Возвращает день месяца заданной даты.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Значение даты, из которого берется день месяца.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4565
4872
|
}
|
|
4566
4873
|
},
|
|
4567
4874
|
"parametersInfo": {
|
|
@@ -4569,24 +4876,75 @@
|
|
|
4569
4876
|
"max": 1
|
|
4570
4877
|
}
|
|
4571
4878
|
},
|
|
4879
|
+
[
|
|
4880
|
+
{
|
|
4881
|
+
"type": "function",
|
|
4882
|
+
"name": "hour",
|
|
4883
|
+
"bundle": "core",
|
|
4884
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour1",
|
|
4885
|
+
"description": "Returns the hour of the time in the given date (0-23).",
|
|
4886
|
+
"examples": "\n##### Пример\n\nGets the hour of the current time\n\n```arcade\nHour(Now())\n```\n\n",
|
|
4887
|
+
"completion": {
|
|
4888
|
+
"label": "Hour",
|
|
4889
|
+
"detail": "Hour(dateValue) -> Number",
|
|
4890
|
+
"insertText": "Hour(${1:dateValue_})$0",
|
|
4891
|
+
"insertTextMode": 2,
|
|
4892
|
+
"insertTextFormat": 2,
|
|
4893
|
+
"kind": 3,
|
|
4894
|
+
"documentation": {
|
|
4895
|
+
"kind": "markdown",
|
|
4896
|
+
"value": "Returns the hour of the time in the given date (0-23).\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the hour of the time.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4897
|
+
}
|
|
4898
|
+
},
|
|
4899
|
+
"parametersInfo": {
|
|
4900
|
+
"min": 1,
|
|
4901
|
+
"max": 1
|
|
4902
|
+
}
|
|
4903
|
+
},
|
|
4904
|
+
{
|
|
4905
|
+
"type": "function",
|
|
4906
|
+
"name": "hour",
|
|
4907
|
+
"bundle": "core",
|
|
4908
|
+
"sinceVersion": "1.24",
|
|
4909
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour2",
|
|
4910
|
+
"description": "Returns the hour of the given time (0-23).",
|
|
4911
|
+
"examples": "\n##### Пример\n\nGets the hour of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 2\n```\n\n",
|
|
4912
|
+
"completion": {
|
|
4913
|
+
"label": "Hour",
|
|
4914
|
+
"detail": "Hour(timeValue) -> Number",
|
|
4915
|
+
"insertText": "Hour(${1:timeValue_})$0",
|
|
4916
|
+
"insertTextMode": 2,
|
|
4917
|
+
"insertTextFormat": 2,
|
|
4918
|
+
"kind": 3,
|
|
4919
|
+
"documentation": {
|
|
4920
|
+
"kind": "markdown",
|
|
4921
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the hour of the given time (0-23).\n\n**Параметр**\n\n- **timeValue**: Time - A Time value from which to get the hour.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4922
|
+
}
|
|
4923
|
+
},
|
|
4924
|
+
"parametersInfo": {
|
|
4925
|
+
"min": 1,
|
|
4926
|
+
"max": 1
|
|
4927
|
+
}
|
|
4928
|
+
}
|
|
4929
|
+
],
|
|
4572
4930
|
{
|
|
4573
4931
|
"type": "function",
|
|
4574
|
-
"name": "
|
|
4932
|
+
"name": "isomonth",
|
|
4575
4933
|
"bundle": "core",
|
|
4576
4934
|
"sinceVersion": "1.12",
|
|
4577
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#
|
|
4578
|
-
"description": "Возвращает
|
|
4579
|
-
"examples": "\n#####
|
|
4935
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
|
|
4936
|
+
"description": "Возвращает месяц заданной даты на основании стандарта ISO 8601. Значения находятся в диапазоне 1-12, где январь это `1`, а декабрь - `12`.",
|
|
4937
|
+
"examples": "\n##### Примеры\n\nПолучает месяц заданной даты на основании стандарта ISO 8601. Возвращает `12`, если месяц - Декабрь.\n\n```arcade\nISOMonth(Date(1980, 11, 31))\n```\n\nGets the month of the given DateOnly value, based on the ISO 8601 standard.\n\n```arcade\nISOMonth(DateOnly(1996, 0, 10))\n// returns 1, for January\n```\n\n",
|
|
4580
4938
|
"completion": {
|
|
4581
|
-
"label": "
|
|
4582
|
-
"detail": "
|
|
4583
|
-
"insertText": "
|
|
4939
|
+
"label": "ISOMonth",
|
|
4940
|
+
"detail": "ISOMonth(dateValue) -> Number",
|
|
4941
|
+
"insertText": "ISOMonth(${1:dateValue_})$0",
|
|
4584
4942
|
"insertTextMode": 2,
|
|
4585
4943
|
"insertTextFormat": 2,
|
|
4586
4944
|
"kind": 3,
|
|
4587
4945
|
"documentation": {
|
|
4588
4946
|
"kind": "markdown",
|
|
4589
|
-
"value": "**[Начиная с версии 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nВозвращает
|
|
4947
|
+
"value": "**[Начиная с версии 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nВозвращает месяц заданной даты на основании стандарта ISO 8601. Значения находятся в диапазоне 1-12, где январь это `1`, а декабрь - `12`.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Значение даты, из которой берется месяц.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4590
4948
|
}
|
|
4591
4949
|
},
|
|
4592
4950
|
"parametersInfo": {
|
|
@@ -4596,22 +4954,22 @@
|
|
|
4596
4954
|
},
|
|
4597
4955
|
{
|
|
4598
4956
|
"type": "function",
|
|
4599
|
-
"name": "
|
|
4957
|
+
"name": "isoweek",
|
|
4600
4958
|
"bundle": "core",
|
|
4601
4959
|
"sinceVersion": "1.12",
|
|
4602
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#
|
|
4603
|
-
"description": "Возвращает
|
|
4604
|
-
"examples": "\n#####
|
|
4960
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
|
|
4961
|
+
"description": "Возвращает неделю года для заданной даты на основании календаря недель ISO 8601. Значения находятся в диапазоне 1-53, где первая неделя года - это `1`, а последняя - `52` или `53`, в зависимости от года.",
|
|
4962
|
+
"examples": "\n##### Примеры\n\nПолучает неделю для заданной даты на основании стандарта ISO 8601. Возвращает `1`, так как эта дата входит в первую неделю следующего года.\n\n```arcade\nISOWeek(Date(1980, 11, 31))\n```\n\nGets the week of the given DateOnly value, based on the ISO 8601 standard.\n\n```arcade\nISOWeek(DateOnly(1996, 11, 10))\n// returns 50\n```\n\n",
|
|
4605
4963
|
"completion": {
|
|
4606
|
-
"label": "
|
|
4607
|
-
"detail": "
|
|
4608
|
-
"insertText": "
|
|
4964
|
+
"label": "ISOWeek",
|
|
4965
|
+
"detail": "ISOWeek(dateValue) -> Number",
|
|
4966
|
+
"insertText": "ISOWeek(${1:dateValue_})$0",
|
|
4609
4967
|
"insertTextMode": 2,
|
|
4610
4968
|
"insertTextFormat": 2,
|
|
4611
4969
|
"kind": 3,
|
|
4612
4970
|
"documentation": {
|
|
4613
4971
|
"kind": "markdown",
|
|
4614
|
-
"value": "**[Начиная с версии 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nВозвращает
|
|
4972
|
+
"value": "**[Начиная с версии 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nВозвращает неделю года для заданной даты на основании календаря недель ISO 8601. Значения находятся в диапазоне 1-53, где первая неделя года - это `1`, а последняя - `52` или `53`, в зависимости от года.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Значение даты, для которой берется неделя.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4615
4973
|
}
|
|
4616
4974
|
},
|
|
4617
4975
|
"parametersInfo": {
|
|
@@ -4621,21 +4979,22 @@
|
|
|
4621
4979
|
},
|
|
4622
4980
|
{
|
|
4623
4981
|
"type": "function",
|
|
4624
|
-
"name": "
|
|
4982
|
+
"name": "isoweekday",
|
|
4625
4983
|
"bundle": "core",
|
|
4626
|
-
"
|
|
4627
|
-
"
|
|
4628
|
-
"
|
|
4984
|
+
"sinceVersion": "1.12",
|
|
4985
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
|
|
4986
|
+
"description": "Возвращает день недели заданной даты на основании стандарта ISO 8601. Значения находятся в диапазоне 1-7, где понедельник - это `1`, а воскресенье - `7`.",
|
|
4987
|
+
"examples": "\n##### Примеры\n\nВозвращает день недели заданной даты на основании стандарта ISO 8601. Возвращает `3` для Среды.\n\n```arcade\nISOWeekday(Date(1980, 11, 31))\n```\n\nReturns the day of the week of the given DateOnly value, based on the ISO 8601 standard.\n\n```arcade\nISOWeekday(DateOnly(1996, 11, 10))\n// returns 2, for Tuesday\n```\n\n",
|
|
4629
4988
|
"completion": {
|
|
4630
|
-
"label": "
|
|
4631
|
-
"detail": "
|
|
4632
|
-
"insertText": "
|
|
4989
|
+
"label": "ISOWeekday",
|
|
4990
|
+
"detail": "ISOWeekday(dateValue) -> Number",
|
|
4991
|
+
"insertText": "ISOWeekday(${1:dateValue_})$0",
|
|
4633
4992
|
"insertTextMode": 2,
|
|
4634
4993
|
"insertTextFormat": 2,
|
|
4635
4994
|
"kind": 3,
|
|
4636
4995
|
"documentation": {
|
|
4637
4996
|
"kind": "markdown",
|
|
4638
|
-
"value": "Возвращает
|
|
4997
|
+
"value": "**[Начиная с версии 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nВозвращает день недели заданной даты на основании стандарта ISO 8601. Значения находятся в диапазоне 1-7, где понедельник - это `1`, а воскресенье - `7`.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Значение даты, из которого возвращается день недели.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4639
4998
|
}
|
|
4640
4999
|
},
|
|
4641
5000
|
"parametersInfo": {
|
|
@@ -4645,21 +5004,22 @@
|
|
|
4645
5004
|
},
|
|
4646
5005
|
{
|
|
4647
5006
|
"type": "function",
|
|
4648
|
-
"name": "
|
|
5007
|
+
"name": "isoyear",
|
|
4649
5008
|
"bundle": "core",
|
|
4650
|
-
"
|
|
4651
|
-
"
|
|
4652
|
-
"
|
|
5009
|
+
"sinceVersion": "1.12",
|
|
5010
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
|
|
5011
|
+
"description": "Возвращает год для заданной даты на основании календаря недель ISO 8601.",
|
|
5012
|
+
"examples": "\n##### Примеры\n\nПолучает год для заданной даты на основании календаря недель ISO 8601. Возвращает `1981`, так как эта дата входит в первую неделю следующего года.\n\n```arcade\nISOYear(Date(1980, 11, 31))\n```\n\nGets the year of the given DateOnly value, based on the ISO 8601 week date calendar.\n\n```arcade\nISOYear(DateOnly(1996, 11, 10))\n// returns 1996\n```\n\n",
|
|
4653
5013
|
"completion": {
|
|
4654
|
-
"label": "
|
|
4655
|
-
"detail": "
|
|
4656
|
-
"insertText": "
|
|
5014
|
+
"label": "ISOYear",
|
|
5015
|
+
"detail": "ISOYear(dateValue) -> Number",
|
|
5016
|
+
"insertText": "ISOYear(${1:dateValue_})$0",
|
|
4657
5017
|
"insertTextMode": 2,
|
|
4658
5018
|
"insertTextFormat": 2,
|
|
4659
5019
|
"kind": 3,
|
|
4660
5020
|
"documentation": {
|
|
4661
5021
|
"kind": "markdown",
|
|
4662
|
-
"value": "Возвращает
|
|
5022
|
+
"value": "**[Начиная с версии 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nВозвращает год для заданной даты на основании календаря недель ISO 8601.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Значение даты, у которой берется год.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4663
5023
|
}
|
|
4664
5024
|
},
|
|
4665
5025
|
"parametersInfo": {
|
|
@@ -4667,13 +5027,115 @@
|
|
|
4667
5027
|
"max": 1
|
|
4668
5028
|
}
|
|
4669
5029
|
},
|
|
5030
|
+
[
|
|
5031
|
+
{
|
|
5032
|
+
"type": "function",
|
|
5033
|
+
"name": "millisecond",
|
|
5034
|
+
"bundle": "core",
|
|
5035
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond1",
|
|
5036
|
+
"description": "Returns the millisecond of the time in the date.",
|
|
5037
|
+
"examples": "\n##### Пример\n\nGets the millisecond of the current time\n\n```arcade\nMillisecond(Now())\n```\n\n",
|
|
5038
|
+
"completion": {
|
|
5039
|
+
"label": "Millisecond",
|
|
5040
|
+
"detail": "Millisecond(dateValue) -> Number",
|
|
5041
|
+
"insertText": "Millisecond(${1:dateValue_})$0",
|
|
5042
|
+
"insertTextMode": 2,
|
|
5043
|
+
"insertTextFormat": 2,
|
|
5044
|
+
"kind": 3,
|
|
5045
|
+
"documentation": {
|
|
5046
|
+
"kind": "markdown",
|
|
5047
|
+
"value": "Returns the millisecond of the time in the date.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the millisecond of the time.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5048
|
+
}
|
|
5049
|
+
},
|
|
5050
|
+
"parametersInfo": {
|
|
5051
|
+
"min": 1,
|
|
5052
|
+
"max": 1
|
|
5053
|
+
}
|
|
5054
|
+
},
|
|
5055
|
+
{
|
|
5056
|
+
"type": "function",
|
|
5057
|
+
"name": "millisecond",
|
|
5058
|
+
"bundle": "core",
|
|
5059
|
+
"sinceVersion": "1.24",
|
|
5060
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond2",
|
|
5061
|
+
"description": "Returns the millisecond of the given time.",
|
|
5062
|
+
"examples": "\n##### Пример\n\nGets the millisecond of the time\n\n```arcade\nHour(Time(2, 59, 23, 450))\n// returns 450\n```\n\n",
|
|
5063
|
+
"completion": {
|
|
5064
|
+
"label": "Millisecond",
|
|
5065
|
+
"detail": "Millisecond(timeValue) -> Number",
|
|
5066
|
+
"insertText": "Millisecond(${1:timeValue_})$0",
|
|
5067
|
+
"insertTextMode": 2,
|
|
5068
|
+
"insertTextFormat": 2,
|
|
5069
|
+
"kind": 3,
|
|
5070
|
+
"documentation": {
|
|
5071
|
+
"kind": "markdown",
|
|
5072
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the millisecond of the given time.\n\n**Параметр**\n\n- **timeValue**: Time - A Time value from which to get the millisecond.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5073
|
+
}
|
|
5074
|
+
},
|
|
5075
|
+
"parametersInfo": {
|
|
5076
|
+
"min": 1,
|
|
5077
|
+
"max": 1
|
|
5078
|
+
}
|
|
5079
|
+
}
|
|
5080
|
+
],
|
|
5081
|
+
[
|
|
5082
|
+
{
|
|
5083
|
+
"type": "function",
|
|
5084
|
+
"name": "minute",
|
|
5085
|
+
"bundle": "core",
|
|
5086
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute1",
|
|
5087
|
+
"description": "Returns the minute of the time in the given date.",
|
|
5088
|
+
"examples": "\n##### Пример\n\nGets the minute of the current time\n\n```arcade\nMinute(Now())\n```\n\n",
|
|
5089
|
+
"completion": {
|
|
5090
|
+
"label": "Minute",
|
|
5091
|
+
"detail": "Minute(dateValue) -> Number",
|
|
5092
|
+
"insertText": "Minute(${1:dateValue_})$0",
|
|
5093
|
+
"insertTextMode": 2,
|
|
5094
|
+
"insertTextFormat": 2,
|
|
5095
|
+
"kind": 3,
|
|
5096
|
+
"documentation": {
|
|
5097
|
+
"kind": "markdown",
|
|
5098
|
+
"value": "Returns the minute of the time in the given date.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the minute of the time.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5099
|
+
}
|
|
5100
|
+
},
|
|
5101
|
+
"parametersInfo": {
|
|
5102
|
+
"min": 1,
|
|
5103
|
+
"max": 1
|
|
5104
|
+
}
|
|
5105
|
+
},
|
|
5106
|
+
{
|
|
5107
|
+
"type": "function",
|
|
5108
|
+
"name": "minute",
|
|
5109
|
+
"bundle": "core",
|
|
5110
|
+
"sinceVersion": "1.24",
|
|
5111
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute2",
|
|
5112
|
+
"description": "Returns the minute of the given time.",
|
|
5113
|
+
"examples": "\n##### Пример\n\nGets the minute of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 59\n```\n\n",
|
|
5114
|
+
"completion": {
|
|
5115
|
+
"label": "Minute",
|
|
5116
|
+
"detail": "Minute(timeValue) -> Number",
|
|
5117
|
+
"insertText": "Minute(${1:timeValue_})$0",
|
|
5118
|
+
"insertTextMode": 2,
|
|
5119
|
+
"insertTextFormat": 2,
|
|
5120
|
+
"kind": 3,
|
|
5121
|
+
"documentation": {
|
|
5122
|
+
"kind": "markdown",
|
|
5123
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the minute of the given time.\n\n**Параметр**\n\n- **timeValue**: Time - A Time value from which to get the minute.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5124
|
+
}
|
|
5125
|
+
},
|
|
5126
|
+
"parametersInfo": {
|
|
5127
|
+
"min": 1,
|
|
5128
|
+
"max": 1
|
|
5129
|
+
}
|
|
5130
|
+
}
|
|
5131
|
+
],
|
|
4670
5132
|
{
|
|
4671
5133
|
"type": "function",
|
|
4672
5134
|
"name": "month",
|
|
4673
5135
|
"bundle": "core",
|
|
4674
5136
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#month",
|
|
4675
5137
|
"description": "Возвращает месяц заданной даты. Значения варьируются в диапазоне 0-11, где январь – `0`, а декабрь – `11`.",
|
|
4676
|
-
"examples": "\n#####
|
|
5138
|
+
"examples": "\n##### Примеры\n\nПолучает месяц заданной даты Возвращает 11, если месяц - Декабрь.\n\n```arcade\nMonth(Date(1980, 11, 31))\n// returns 11\n```\n\nGets the month of the given DateOnly value.\n\n```arcade\nMonth(DateOnly(1996, 0, 31))\n// returns 0, for the month of January\n```\n\n",
|
|
4677
5139
|
"completion": {
|
|
4678
5140
|
"label": "Month",
|
|
4679
5141
|
"detail": "Month(dateValue) -> Number",
|
|
@@ -4683,7 +5145,7 @@
|
|
|
4683
5145
|
"kind": 3,
|
|
4684
5146
|
"documentation": {
|
|
4685
5147
|
"kind": "markdown",
|
|
4686
|
-
"value": "Возвращает месяц заданной даты. Значения варьируются в диапазоне 0-11, где январь – `0`, а декабрь – `11`.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Значение даты, из которой берется месяц.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5148
|
+
"value": "Возвращает месяц заданной даты. Значения варьируются в диапазоне 0-11, где январь – `0`, а декабрь – `11`.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Значение даты, из которой берется месяц.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4687
5149
|
}
|
|
4688
5150
|
},
|
|
4689
5151
|
"parametersInfo": {
|
|
@@ -4715,23 +5177,227 @@
|
|
|
4715
5177
|
"max": 0
|
|
4716
5178
|
}
|
|
4717
5179
|
},
|
|
5180
|
+
[
|
|
5181
|
+
{
|
|
5182
|
+
"type": "function",
|
|
5183
|
+
"name": "second",
|
|
5184
|
+
"bundle": "core",
|
|
5185
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second1",
|
|
5186
|
+
"description": "Returns the second of the time in the date.",
|
|
5187
|
+
"examples": "\n##### Пример\n\nGets the second of the current time\n\n```arcade\nSecond(Now())\n```\n\n",
|
|
5188
|
+
"completion": {
|
|
5189
|
+
"label": "Second",
|
|
5190
|
+
"detail": "Second(dateValue) -> Number",
|
|
5191
|
+
"insertText": "Second(${1:dateValue_})$0",
|
|
5192
|
+
"insertTextMode": 2,
|
|
5193
|
+
"insertTextFormat": 2,
|
|
5194
|
+
"kind": 3,
|
|
5195
|
+
"documentation": {
|
|
5196
|
+
"kind": "markdown",
|
|
5197
|
+
"value": "Returns the second of the time in the date.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the second of the time.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5198
|
+
}
|
|
5199
|
+
},
|
|
5200
|
+
"parametersInfo": {
|
|
5201
|
+
"min": 1,
|
|
5202
|
+
"max": 1
|
|
5203
|
+
}
|
|
5204
|
+
},
|
|
5205
|
+
{
|
|
5206
|
+
"type": "function",
|
|
5207
|
+
"name": "second",
|
|
5208
|
+
"bundle": "core",
|
|
5209
|
+
"sinceVersion": "1.24",
|
|
5210
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second2",
|
|
5211
|
+
"description": "Returns the second of the given time.",
|
|
5212
|
+
"examples": "\n##### Пример\n\nGets the second of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 23\n```\n\n",
|
|
5213
|
+
"completion": {
|
|
5214
|
+
"label": "Second",
|
|
5215
|
+
"detail": "Second(timeValue) -> Number",
|
|
5216
|
+
"insertText": "Second(${1:timeValue_})$0",
|
|
5217
|
+
"insertTextMode": 2,
|
|
5218
|
+
"insertTextFormat": 2,
|
|
5219
|
+
"kind": 3,
|
|
5220
|
+
"documentation": {
|
|
5221
|
+
"kind": "markdown",
|
|
5222
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the second of the given time.\n\n**Параметр**\n\n- **timeValue**: Time - A Time value from which to get the second.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5223
|
+
}
|
|
5224
|
+
},
|
|
5225
|
+
"parametersInfo": {
|
|
5226
|
+
"min": 1,
|
|
5227
|
+
"max": 1
|
|
5228
|
+
}
|
|
5229
|
+
}
|
|
5230
|
+
],
|
|
5231
|
+
[
|
|
5232
|
+
{
|
|
5233
|
+
"type": "function",
|
|
5234
|
+
"name": "time",
|
|
5235
|
+
"bundle": "core",
|
|
5236
|
+
"sinceVersion": "1.24",
|
|
5237
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time1",
|
|
5238
|
+
"description": "Creates a Time value representing the current time in the time zone of the profile's execution context.",
|
|
5239
|
+
"examples": "\n##### Пример\n\nReturns the current time displayed using the profile's default time zone\n\n```arcade\n// Time represents 12:41:20 PM\nTime()\n```\n\n",
|
|
5240
|
+
"completion": {
|
|
5241
|
+
"label": "Time",
|
|
5242
|
+
"detail": "Time() -> Time",
|
|
5243
|
+
"insertText": "Time($0)",
|
|
5244
|
+
"insertTextMode": 2,
|
|
5245
|
+
"insertTextFormat": 2,
|
|
5246
|
+
"kind": 3,
|
|
5247
|
+
"documentation": {
|
|
5248
|
+
"kind": "markdown",
|
|
5249
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value representing the current time in the time zone of the profile's execution context.\n\n**Возвращаемое значение**: Time"
|
|
5250
|
+
}
|
|
5251
|
+
},
|
|
5252
|
+
"parametersInfo": {
|
|
5253
|
+
"min": 0,
|
|
5254
|
+
"max": 0
|
|
5255
|
+
}
|
|
5256
|
+
},
|
|
5257
|
+
{
|
|
5258
|
+
"type": "function",
|
|
5259
|
+
"name": "time",
|
|
5260
|
+
"bundle": "core",
|
|
5261
|
+
"sinceVersion": "1.24",
|
|
5262
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time2",
|
|
5263
|
+
"description": "Creates a Time value from a given date.",
|
|
5264
|
+
"examples": "\n##### Пример\n\nReturns the Time from the given date\n\n```arcade\nTime(Date(2008,10,11,10,30));\n// returns a Time value of 10:30:00 AM\n```\n\n",
|
|
5265
|
+
"completion": {
|
|
5266
|
+
"label": "Time",
|
|
5267
|
+
"detail": "Time(dateValue) -> Time",
|
|
5268
|
+
"insertText": "Time(${1:dateValue_})$0",
|
|
5269
|
+
"insertTextMode": 2,
|
|
5270
|
+
"insertTextFormat": 2,
|
|
5271
|
+
"kind": 3,
|
|
5272
|
+
"documentation": {
|
|
5273
|
+
"kind": "markdown",
|
|
5274
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a given date.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to get the time.\n\n**Возвращаемое значение**: Time"
|
|
5275
|
+
}
|
|
5276
|
+
},
|
|
5277
|
+
"parametersInfo": {
|
|
5278
|
+
"min": 1,
|
|
5279
|
+
"max": 1
|
|
5280
|
+
}
|
|
5281
|
+
},
|
|
5282
|
+
{
|
|
5283
|
+
"type": "function",
|
|
5284
|
+
"name": "time",
|
|
5285
|
+
"bundle": "core",
|
|
5286
|
+
"sinceVersion": "1.24",
|
|
5287
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time3",
|
|
5288
|
+
"description": "Creates a Time value from a given number representing milliseconds since midnight. If the input value is larger than 86,400,000 (the maximum number of milliseconds in a day) or less than 0, the function will return `null`.",
|
|
5289
|
+
"examples": "\n##### Примеры\n\nReturns the Time from the number of milliseconds since midnight\n\n```arcade\nTime(8119800);\n// returns a Time value of 02:15:19.800\n```\n\nReturns the Time from the number of milliseconds since midnight\n\n```arcade\nTime(86400001);\n// returns null - the input value exceeds the number of milliseconds in a day\n```\n\n",
|
|
5290
|
+
"completion": {
|
|
5291
|
+
"label": "Time",
|
|
5292
|
+
"detail": "Time(numValue) -> Time",
|
|
5293
|
+
"insertText": "Time(${1:numValue_})$0",
|
|
5294
|
+
"insertTextMode": 2,
|
|
5295
|
+
"insertTextFormat": 2,
|
|
5296
|
+
"kind": 3,
|
|
5297
|
+
"documentation": {
|
|
5298
|
+
"kind": "markdown",
|
|
5299
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a given number representing milliseconds since midnight. If the input value is larger than 86,400,000 (the maximum number of milliseconds in a day) or less than 0, the function will return `null`.\n\n**Параметр**\n\n- **numValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since midnight.\n\n**Возвращаемое значение**: Time"
|
|
5300
|
+
}
|
|
5301
|
+
},
|
|
5302
|
+
"parametersInfo": {
|
|
5303
|
+
"min": 1,
|
|
5304
|
+
"max": 1
|
|
5305
|
+
}
|
|
5306
|
+
},
|
|
5307
|
+
{
|
|
5308
|
+
"type": "function",
|
|
5309
|
+
"name": "time",
|
|
5310
|
+
"bundle": "core",
|
|
5311
|
+
"sinceVersion": "1.24",
|
|
5312
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time4",
|
|
5313
|
+
"description": "Creates a Time value from inputs representing hours, minutes, seconds, and milliseconds.",
|
|
5314
|
+
"examples": "\n##### Пример\n\nCreates a Time value from inputs representing hours, minutes, seconds, and milliseconds\n\n```arcade\nTime(13, 20);\n// returns a Time value of 13:20:00\n \nTime(2, 59, 23)\n// returns a Time value of 02:59:23\n \nTime(15, 47, 0, 474)\n// returns a Time value of 15:47:00.474\n```\n\n",
|
|
5315
|
+
"completion": {
|
|
5316
|
+
"label": "Time",
|
|
5317
|
+
"detail": "Time(hours, minutes, seconds?, milliseconds?) -> Time",
|
|
5318
|
+
"insertText": "Time(${1:hours_}, ${2:minutes_})$0",
|
|
5319
|
+
"insertTextMode": 2,
|
|
5320
|
+
"insertTextFormat": 2,
|
|
5321
|
+
"kind": 3,
|
|
5322
|
+
"documentation": {
|
|
5323
|
+
"kind": "markdown",
|
|
5324
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from inputs representing hours, minutes, seconds, and milliseconds.\n\n**Параметры**\n\n- **hours**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number representing hours of the Time value (0-23).\n- **minutes**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number representing the minutes of the Time value (0-59).\n- **seconds** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number representing the seconds of the Time value (0-59).\n- **milliseconds** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number representing the milliseconds of the Time value (0-999).\n\n**Возвращаемое значение**: Time"
|
|
5325
|
+
}
|
|
5326
|
+
},
|
|
5327
|
+
"parametersInfo": {
|
|
5328
|
+
"min": 2,
|
|
5329
|
+
"max": 4
|
|
5330
|
+
}
|
|
5331
|
+
},
|
|
5332
|
+
{
|
|
5333
|
+
"type": "function",
|
|
5334
|
+
"name": "time",
|
|
5335
|
+
"bundle": "core",
|
|
5336
|
+
"sinceVersion": "1.24",
|
|
5337
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time5",
|
|
5338
|
+
"description": "Creates a Time value from a text input representing time, with an optional input indicating the text's format.",
|
|
5339
|
+
"examples": "\n##### Примеры\n\nCreates a Time value from a text value representing the time\n\n```arcade\nTime(\"1:20 PM\");\n// returns a Time value of 13:20:00\n```\n\nCreates a Time value from a text value representing the time and formatting\n\n```arcade\nTime(\"12 05 04\", \"HH MM ss\")\n// returns a Time value of 12:05:04\n```\n\n",
|
|
5340
|
+
"completion": {
|
|
5341
|
+
"label": "Time",
|
|
5342
|
+
"detail": "Time(timeValue, format?) -> Time",
|
|
5343
|
+
"insertText": "Time(${1:timeValue_})$0",
|
|
5344
|
+
"insertTextMode": 2,
|
|
5345
|
+
"insertTextFormat": 2,
|
|
5346
|
+
"kind": 3,
|
|
5347
|
+
"documentation": {
|
|
5348
|
+
"kind": "markdown",
|
|
5349
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a text input representing time, with an optional input indicating the text's format.\n\n**Параметры**\n\n- **timeValue**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - A text value representing a time.\n- **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - A text value indicating the format of the `timeValue` input. \nPossible values: \n - `h`: Civilian hours, not padded (0 - 12) \n - `hh`: Civilian hours, padded (00 - 12) \n - `H`: Military hours, not padded (0 - 24) \n - `HH`: Military hours, padded (00 - 24) \n - `m`: Minutes, not padded (0 - 59) \n - `mm`: Minutes, padded (00 - 59) \n - `s`: Seconds, not padded (0 - 59) \n - `ss`: Seconds, padded (00 - 59) \n - `A`: AM/PM \n\n\n**Возвращаемое значение**: Time"
|
|
5350
|
+
}
|
|
5351
|
+
},
|
|
5352
|
+
"parametersInfo": {
|
|
5353
|
+
"min": 1,
|
|
5354
|
+
"max": 2
|
|
5355
|
+
}
|
|
5356
|
+
}
|
|
5357
|
+
],
|
|
5358
|
+
{
|
|
5359
|
+
"type": "function",
|
|
5360
|
+
"name": "timestamp",
|
|
5361
|
+
"bundle": "core",
|
|
5362
|
+
"sinceVersion": "1.1",
|
|
5363
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
|
|
5364
|
+
"description": "Создает значение даты, представляющее текущую дату и время в UTC.",
|
|
5365
|
+
"examples": "\n##### Пример\n\nСоздает дату в формате времени UTC\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
|
|
5366
|
+
"completion": {
|
|
5367
|
+
"label": "Timestamp",
|
|
5368
|
+
"detail": "Timestamp() -> Date",
|
|
5369
|
+
"insertText": "Timestamp($0)",
|
|
5370
|
+
"insertTextMode": 2,
|
|
5371
|
+
"insertTextFormat": 2,
|
|
5372
|
+
"kind": 3,
|
|
5373
|
+
"documentation": {
|
|
5374
|
+
"kind": "markdown",
|
|
5375
|
+
"value": "**[Начиная с версии 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nСоздает значение даты, представляющее текущую дату и время в UTC.\n\n**Возвращаемое значение**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
5376
|
+
}
|
|
5377
|
+
},
|
|
5378
|
+
"parametersInfo": {
|
|
5379
|
+
"min": 0,
|
|
5380
|
+
"max": 0
|
|
5381
|
+
}
|
|
5382
|
+
},
|
|
4718
5383
|
{
|
|
4719
5384
|
"type": "function",
|
|
4720
|
-
"name": "
|
|
5385
|
+
"name": "timezone",
|
|
4721
5386
|
"bundle": "core",
|
|
4722
|
-
"
|
|
4723
|
-
"
|
|
4724
|
-
"
|
|
5387
|
+
"sinceVersion": "1.24",
|
|
5388
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone",
|
|
5389
|
+
"description": "Returns the time zone of the given Date. The time zone will be one of the following:\n- text representing an entry in the [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) (i.e. `America/New_York`)\n- text representing the hours and minutes that should be added to UTC (i.e. `+07:00` or `-03:00`)\n- `system` - time zone will be based on the client or system's local time zone \n- `UTC`\n- `unknown`\n",
|
|
5390
|
+
"examples": "\n##### Пример\n\nReturns the time zone of a Date\n\n```arcade\nvar natlPizzaDay = Date(2024, 1, 9, 0, 0, 0, 0, \"America/Los_Angeles\");\nTimeZone(natlPizzaDay);\n// Returns 'America/Los_Angeles'\n```\n\n",
|
|
4725
5391
|
"completion": {
|
|
4726
|
-
"label": "
|
|
4727
|
-
"detail": "
|
|
4728
|
-
"insertText": "
|
|
5392
|
+
"label": "TimeZone",
|
|
5393
|
+
"detail": "TimeZone(dateValue) -> Text",
|
|
5394
|
+
"insertText": "TimeZone(${1:dateValue_})$0",
|
|
4729
5395
|
"insertTextMode": 2,
|
|
4730
5396
|
"insertTextFormat": 2,
|
|
4731
5397
|
"kind": 3,
|
|
4732
5398
|
"documentation": {
|
|
4733
5399
|
"kind": "markdown",
|
|
4734
|
-
"value": "
|
|
5400
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the time zone of the given Date. The time zone will be one of the following:\n- text representing an entry in the [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) (i.e. `America/New_York`)\n- text representing the hours and minutes that should be added to UTC (i.e. `+07:00` or `-03:00`)\n- `system` - time zone will be based on the client or system's local time zone \n- `UTC`\n- `unknown`\n\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone.\n\n**Возвращаемое значение**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
4735
5401
|
}
|
|
4736
5402
|
},
|
|
4737
5403
|
"parametersInfo": {
|
|
@@ -4741,27 +5407,27 @@
|
|
|
4741
5407
|
},
|
|
4742
5408
|
{
|
|
4743
5409
|
"type": "function",
|
|
4744
|
-
"name": "
|
|
5410
|
+
"name": "timezoneoffset",
|
|
4745
5411
|
"bundle": "core",
|
|
4746
|
-
"sinceVersion": "1.
|
|
4747
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#
|
|
4748
|
-
"description": "
|
|
4749
|
-
"examples": "\n##### Пример\n\
|
|
5412
|
+
"sinceVersion": "1.24",
|
|
5413
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezoneoffset",
|
|
5414
|
+
"description": "Returns the time zone offset in minutes from UTC for the given Date.",
|
|
5415
|
+
"examples": "\n##### Пример\n\nReturns the time zone offset in minutes from UTC\n\n```arcade\nvar inputDate = Date(2011, 10, 11, 8, 0, 0, 0, \"America/New_York\")\nTimeZoneOffset(inputDate);\n// returns -18000000\n```\n\n",
|
|
4750
5416
|
"completion": {
|
|
4751
|
-
"label": "
|
|
4752
|
-
"detail": "
|
|
4753
|
-
"insertText": "
|
|
5417
|
+
"label": "TimeZoneOffset",
|
|
5418
|
+
"detail": "TimeZoneOffset(dateValue) -> Number",
|
|
5419
|
+
"insertText": "TimeZoneOffset(${1:dateValue_})$0",
|
|
4754
5420
|
"insertTextMode": 2,
|
|
4755
5421
|
"insertTextFormat": 2,
|
|
4756
5422
|
"kind": 3,
|
|
4757
5423
|
"documentation": {
|
|
4758
5424
|
"kind": "markdown",
|
|
4759
|
-
"value": "**[Начиная с версии 1.
|
|
5425
|
+
"value": "**[Начиная с версии 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the time zone offset in minutes from UTC for the given Date.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone offset.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4760
5426
|
}
|
|
4761
5427
|
},
|
|
4762
5428
|
"parametersInfo": {
|
|
4763
|
-
"min":
|
|
4764
|
-
"max":
|
|
5429
|
+
"min": 1,
|
|
5430
|
+
"max": 1
|
|
4765
5431
|
}
|
|
4766
5432
|
},
|
|
4767
5433
|
{
|
|
@@ -4845,7 +5511,7 @@
|
|
|
4845
5511
|
"sinceVersion": "1.14",
|
|
4846
5512
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#week",
|
|
4847
5513
|
"description": "Возвращает номер недели в году заданной даты. Значения находятся в диапазоне 0-53, где первая неделя года - это `0`, а последняя - `51`, `52` или `53`, в зависимости от года. Первая и последняя недели могут длиться не полных семь дней.",
|
|
4848
|
-
"examples": "\n##### Примеры\n\nИспользовать начало недели по умолчанию (воскресенье)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nУстановить начало недели на четверг\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nУстановить начало недели на пятницу\n\n```arcade\nWeek( Date(1974,0,3), 5 )\n// Returns 0\n```\n\n\n\n```arcade\nWeek( Date(1945,8,23) )\n// Returns 38\n```\n\n\n\n```arcade\nWeek( Date(2022,7,20) )\n// Returns 33\n```\n\n",
|
|
5514
|
+
"examples": "\n##### Примеры\n\nИспользовать начало недели по умолчанию (воскресенье)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nУстановить начало недели на четверг\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nУстановить начало недели на пятницу\n\n```arcade\nWeek( Date(1974,0,3), 5 )\n// Returns 0\n```\n\n\n\n```arcade\nWeek( Date(1945,8,23) )\n// Returns 38\n```\n\n\n\n```arcade\nWeek( Date(2022,7,20) )\n// Returns 33\n```\n\nReturns the week from the DateOnly value\n\n```arcade\nWeek(DateOnly(1996, 11, 10))\n// returns 49\n```\n\n",
|
|
4849
5515
|
"completion": {
|
|
4850
5516
|
"label": "Week",
|
|
4851
5517
|
"detail": "Week(dateValue, startDay?) -> Number",
|
|
@@ -4855,7 +5521,7 @@
|
|
|
4855
5521
|
"kind": 3,
|
|
4856
5522
|
"documentation": {
|
|
4857
5523
|
"kind": "markdown",
|
|
4858
|
-
"value": "**[Начиная с версии 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nВозвращает номер недели в году заданной даты. Значения находятся в диапазоне 0-53, где первая неделя года - это `0`, а последняя - `51`, `52` или `53`, в зависимости от года. Первая и последняя недели могут длиться не полных семь дней.\n\n**Параметры**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Значение даты, для которой берется неделя.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Число, представляющее день начала недели. Воскресенье = 0; Понедельник = 1; Вторник = 2; Среда = 3; Четверг = 4; Пятница = 5; Суббота = 6. По умолчанию - `0` (воскресенье).\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5524
|
+
"value": "**[Начиная с версии 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nВозвращает номер недели в году заданной даты. Значения находятся в диапазоне 0-53, где первая неделя года - это `0`, а последняя - `51`, `52` или `53`, в зависимости от года. Первая и последняя недели могут длиться не полных семь дней.\n\n**Параметры**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Значение даты, для которой берется неделя.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Число, представляющее день начала недели. Воскресенье = 0; Понедельник = 1; Вторник = 2; Среда = 3; Четверг = 4; Пятница = 5; Суббота = 6. По умолчанию - `0` (воскресенье).\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4859
5525
|
}
|
|
4860
5526
|
},
|
|
4861
5527
|
"parametersInfo": {
|
|
@@ -4869,7 +5535,7 @@
|
|
|
4869
5535
|
"bundle": "core",
|
|
4870
5536
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#weekday",
|
|
4871
5537
|
"description": "Возвращает день недели заданной даты. Значения варьируются в диапазоне 0-6, где воскресенье – `0`, а суббота – `6`.",
|
|
4872
|
-
"examples": "\n#####
|
|
5538
|
+
"examples": "\n##### Примеры\n\nВозвращает день недели заданной даты. Возвращает `3` для Среды.\n\n```arcade\nWeekday(Date(1980, 11, 31))\n```\n\nReturns the day of the week of the given DateOnly value.\n\n```arcade\nWeekday(DateOnly(1996, 11, 10))\n// returns 2, for Tuesday\n```\n\n",
|
|
4873
5539
|
"completion": {
|
|
4874
5540
|
"label": "Weekday",
|
|
4875
5541
|
"detail": "Weekday(dateValue) -> Number",
|
|
@@ -4879,7 +5545,7 @@
|
|
|
4879
5545
|
"kind": 3,
|
|
4880
5546
|
"documentation": {
|
|
4881
5547
|
"kind": "markdown",
|
|
4882
|
-
"value": "Возвращает день недели заданной даты. Значения варьируются в диапазоне 0-6, где воскресенье – `0`, а суббота – `6`.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Значение даты, из которого возвращается день недели.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5548
|
+
"value": "Возвращает день недели заданной даты. Значения варьируются в диапазоне 0-6, где воскресенье – `0`, а суббота – `6`.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Значение даты, из которого возвращается день недели.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4883
5549
|
}
|
|
4884
5550
|
},
|
|
4885
5551
|
"parametersInfo": {
|
|
@@ -4893,7 +5559,7 @@
|
|
|
4893
5559
|
"bundle": "core",
|
|
4894
5560
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#year",
|
|
4895
5561
|
"description": "Возвращает год заданной даты.",
|
|
4896
|
-
"examples": "\n#####
|
|
5562
|
+
"examples": "\n##### Примеры\n\nПолучает год текущей даты\n\n```arcade\nYear(Now())\n```\n\nGets the year of the given DateOnly value\n\n```arcade\nYear(DateOnly(1996, 11, 10))\n// returns 1996\n```\n\n",
|
|
4897
5563
|
"completion": {
|
|
4898
5564
|
"label": "Year",
|
|
4899
5565
|
"detail": "Year(dateValue) -> Number",
|
|
@@ -4903,7 +5569,7 @@
|
|
|
4903
5569
|
"kind": 3,
|
|
4904
5570
|
"documentation": {
|
|
4905
5571
|
"kind": "markdown",
|
|
4906
|
-
"value": "Возвращает год заданной даты.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Значение даты, у которой берется год.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5572
|
+
"value": "Возвращает год заданной даты.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Значение даты, у которой берется год.\n\n**Возвращаемое значение**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4907
5573
|
}
|
|
4908
5574
|
},
|
|
4909
5575
|
"parametersInfo": {
|