@arcgis/coding-components 1.0.0-beta.11 → 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/arcgis-coding-components.esm.js +1 -1
- 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 +853 -187
- 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/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +1 -2
- package/dist/arcgis-coding-components/index.esm.js +1 -1
- package/dist/arcgis-coding-components/{p-ed254359.js → p-00c0b964.js} +1 -1
- package/dist/arcgis-coding-components/{p-616bcc2c.js → p-0f471c2c.js} +1 -1
- package/dist/arcgis-coding-components/{p-4d7cdaf4.js → p-2daa5deb.js} +1 -1
- package/dist/arcgis-coding-components/{p-b866ffa3.js → p-65933e8a.js} +1 -1
- package/dist/arcgis-coding-components/{p-2eee5b07.js → p-92019d78.js} +7 -7
- package/dist/arcgis-coding-components/{p-ee4aaf72.js → p-bcd478e3.js} +1 -1
- package/dist/arcgis-coding-components/{p-41feaa6e.js → p-be85ec3d.js} +1 -1
- package/dist/arcgis-coding-components/{p-63d6d128.js → p-bf83cfac.js} +1 -1
- package/dist/arcgis-coding-components/p-dd2d53e7.entry.js +1 -0
- package/dist/arcgis-coding-components/{p-c14a46af.js → p-f1b6ba59.js} +1 -1
- package/dist/cjs/{arcade-defaults-f77b7bae.js → arcade-defaults-990ceb0a.js} +51 -33
- package/dist/cjs/{arcade-mode-4b1d5adc.js → arcade-mode-6a101da0.js} +1 -1
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +40 -10
- package/dist/cjs/{cssMode-c21a8b34.js → cssMode-ef738198.js} +1 -1
- package/dist/cjs/{html-baddeebf.js → html-e97a8c1e.js} +1 -1
- package/dist/cjs/{htmlMode-3ca73779.js → htmlMode-0afb8251.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{javascript-4226e8d4.js → javascript-09fbcb7d.js} +2 -2
- package/dist/cjs/{jsonMode-4496d6b9.js → jsonMode-9a315af5.js} +1 -1
- package/dist/cjs/{tsMode-6fa6f2f6.js → tsMode-000c3471.js} +1 -1
- package/dist/cjs/{typescript-5b6bab68.js → typescript-a9f8ce6c.js} +1 -1
- package/dist/components/arcade-api.js +2 -1
- package/dist/components/arcade-defaults.js +3 -23
- package/dist/components/arcade-results.js +40 -10
- package/dist/components/arcade-suggestions.js +2 -1
- package/dist/components/arcade-variables.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +1 -1
- package/dist/components/code-editor.js +1 -1
- package/dist/components/fields.js +125 -0
- package/dist/components/index2.js +282 -32
- package/dist/components/utilities.js +2 -334
- package/dist/esm/{arcade-defaults-24670a1d.js → arcade-defaults-a8808d6a.js} +52 -33
- package/dist/esm/{arcade-mode-dc10ed9f.js → arcade-mode-6c8aff99.js} +1 -1
- package/dist/esm/arcgis-arcade-api_6.entry.js +40 -10
- package/dist/esm/{cssMode-0ae84348.js → cssMode-e19675cf.js} +1 -1
- package/dist/esm/{html-c18864a6.js → html-0e2f7c2f.js} +1 -1
- package/dist/esm/{htmlMode-426699f2.js → htmlMode-a4dd6993.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{javascript-982f2d73.js → javascript-9d754452.js} +2 -2
- package/dist/esm/{jsonMode-170e0a0e.js → jsonMode-cfafe91a.js} +1 -1
- package/dist/esm/{tsMode-99d2e8e5.js → tsMode-612386a7.js} +1 -1
- package/dist/esm/{typescript-de4f8a27.js → typescript-a17e2ba3.js} +1 -1
- package/dist/types/utils/arcade-executor.d.ts +35 -3
- package/dist/types/utils/fields.d.ts +10 -0
- package/dist/types/utils/profile/types.d.ts +2 -2
- package/dist/types/utils/utilities.d.ts +0 -6
- package/package.json +8 -8
- package/dist/arcgis-coding-components/p-9a6baa15.entry.js +0 -1
|
@@ -574,6 +574,31 @@
|
|
|
574
574
|
"max": 4
|
|
575
575
|
}
|
|
576
576
|
},
|
|
577
|
+
{
|
|
578
|
+
"type": "function",
|
|
579
|
+
"name": "featuresetbyrelationshipclass",
|
|
580
|
+
"bundle": "data-access",
|
|
581
|
+
"sinceVersion": "1.24",
|
|
582
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
|
|
583
|
+
"description": "Returns the related records for a given feature as a FeatureSet based on the class name of the relationship.",
|
|
584
|
+
"examples": "\n##### Primer\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",
|
|
585
|
+
"completion": {
|
|
586
|
+
"label": "FeatureSetByRelationshipClass",
|
|
587
|
+
"detail": "FeatureSetByRelationshipClass(inputFeature, relationshipClass, fieldNames?, includeGeometry?) -> FeatureSet",
|
|
588
|
+
"insertText": "FeatureSetByRelationshipClass(${1:inputFeature_}, ${2:relationshipClass_})$0",
|
|
589
|
+
"insertTextMode": 2,
|
|
590
|
+
"insertTextFormat": 2,
|
|
591
|
+
"kind": 3,
|
|
592
|
+
"documentation": {
|
|
593
|
+
"kind": "markdown",
|
|
594
|
+
"value": "**[Od verzije 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**Parametri**\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**Povratna vrednost**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
"parametersInfo": {
|
|
598
|
+
"min": 2,
|
|
599
|
+
"max": 4
|
|
600
|
+
}
|
|
601
|
+
},
|
|
577
602
|
{
|
|
578
603
|
"type": "function",
|
|
579
604
|
"name": "featuresetbyrelationshipname",
|
|
@@ -1226,29 +1251,54 @@
|
|
|
1226
1251
|
"id": "date_functions",
|
|
1227
1252
|
"title": "Funkcije datuma",
|
|
1228
1253
|
"items": [
|
|
1254
|
+
{
|
|
1255
|
+
"type": "function",
|
|
1256
|
+
"name": "changetimezone",
|
|
1257
|
+
"bundle": "core",
|
|
1258
|
+
"sinceVersion": "1.24",
|
|
1259
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone",
|
|
1260
|
+
"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`.",
|
|
1261
|
+
"examples": "\n##### Primeri\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",
|
|
1262
|
+
"completion": {
|
|
1263
|
+
"label": "ChangeTimeZone",
|
|
1264
|
+
"detail": "ChangeTimeZone(dateValue, newTimeZone) -> Date",
|
|
1265
|
+
"insertText": "ChangeTimeZone(${1:dateValue_}, ${2:newTimeZone_})$0",
|
|
1266
|
+
"insertTextMode": 2,
|
|
1267
|
+
"insertTextFormat": 2,
|
|
1268
|
+
"kind": 3,
|
|
1269
|
+
"documentation": {
|
|
1270
|
+
"kind": "markdown",
|
|
1271
|
+
"value": "**[Od verzije 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**Parametri**\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**Povratna vrednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
1272
|
+
}
|
|
1273
|
+
},
|
|
1274
|
+
"parametersInfo": {
|
|
1275
|
+
"min": 2,
|
|
1276
|
+
"max": 2
|
|
1277
|
+
}
|
|
1278
|
+
},
|
|
1229
1279
|
[
|
|
1230
1280
|
{
|
|
1231
1281
|
"type": "function",
|
|
1232
1282
|
"name": "date",
|
|
1233
1283
|
"bundle": "core",
|
|
1234
1284
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date1",
|
|
1235
|
-
"description": "
|
|
1236
|
-
"examples": "\n##### Primeri\n\
|
|
1285
|
+
"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.",
|
|
1286
|
+
"examples": "\n##### Primeri\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",
|
|
1237
1287
|
"completion": {
|
|
1238
1288
|
"label": "Date",
|
|
1239
|
-
"detail": "Date(year, month, day, hour?, minute?, second?, millisecond?) -> Date",
|
|
1289
|
+
"detail": "Date(year, month, day, hour?, minute?, second?, millisecond?, timeZone?) -> Date",
|
|
1240
1290
|
"insertText": "Date(${1:year_}, ${2:month_}, ${3:day_})$0",
|
|
1241
1291
|
"insertTextMode": 2,
|
|
1242
1292
|
"insertTextFormat": 2,
|
|
1243
1293
|
"kind": 3,
|
|
1244
1294
|
"documentation": {
|
|
1245
1295
|
"kind": "markdown",
|
|
1246
|
-
"value": "
|
|
1296
|
+
"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**Parametri**\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**Povratna vrednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
1247
1297
|
}
|
|
1248
1298
|
},
|
|
1249
1299
|
"parametersInfo": {
|
|
1250
1300
|
"min": 3,
|
|
1251
|
-
"max":
|
|
1301
|
+
"max": 8
|
|
1252
1302
|
}
|
|
1253
1303
|
},
|
|
1254
1304
|
{
|
|
@@ -1256,8 +1306,8 @@
|
|
|
1256
1306
|
"name": "date",
|
|
1257
1307
|
"bundle": "core",
|
|
1258
1308
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date2",
|
|
1259
|
-
"description": "
|
|
1260
|
-
"examples": "\n#####
|
|
1309
|
+
"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.",
|
|
1310
|
+
"examples": "\n##### Primeri\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",
|
|
1261
1311
|
"completion": {
|
|
1262
1312
|
"label": "Date",
|
|
1263
1313
|
"detail": "Date(epoch?) -> Date",
|
|
@@ -1267,7 +1317,7 @@
|
|
|
1267
1317
|
"kind": 3,
|
|
1268
1318
|
"documentation": {
|
|
1269
1319
|
"kind": "markdown",
|
|
1270
|
-
"value": "
|
|
1320
|
+
"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**Parametar**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Povratna vrednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
1271
1321
|
}
|
|
1272
1322
|
},
|
|
1273
1323
|
"parametersInfo": {
|
|
@@ -1280,8 +1330,8 @@
|
|
|
1280
1330
|
"name": "date",
|
|
1281
1331
|
"bundle": "core",
|
|
1282
1332
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date3",
|
|
1283
|
-
"description": "
|
|
1284
|
-
"examples": "\n#####
|
|
1333
|
+
"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.",
|
|
1334
|
+
"examples": "\n##### Primeri\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",
|
|
1285
1335
|
"completion": {
|
|
1286
1336
|
"label": "Date",
|
|
1287
1337
|
"detail": "Date(timestamp?) -> Date",
|
|
@@ -1291,70 +1341,376 @@
|
|
|
1291
1341
|
"kind": 3,
|
|
1292
1342
|
"documentation": {
|
|
1293
1343
|
"kind": "markdown",
|
|
1294
|
-
"value": "
|
|
1344
|
+
"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**Parametar**\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**Povratna vrednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
1295
1345
|
}
|
|
1296
1346
|
},
|
|
1297
1347
|
"parametersInfo": {
|
|
1298
1348
|
"min": 0,
|
|
1299
1349
|
"max": 1
|
|
1300
1350
|
}
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
"type": "function",
|
|
1354
|
+
"name": "date",
|
|
1355
|
+
"bundle": "core",
|
|
1356
|
+
"sinceVersion": "1.24",
|
|
1357
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date4",
|
|
1358
|
+
"description": "Creates a Date from a DateOnly value, with an optional Time and time zone value.",
|
|
1359
|
+
"examples": "\n##### Primer\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",
|
|
1360
|
+
"completion": {
|
|
1361
|
+
"label": "Date",
|
|
1362
|
+
"detail": "Date(dateOnlyValue, timeValue?, timeZone?) -> Date",
|
|
1363
|
+
"insertText": "Date(${1:dateOnlyValue_})$0",
|
|
1364
|
+
"insertTextMode": 2,
|
|
1365
|
+
"insertTextFormat": 2,
|
|
1366
|
+
"kind": 3,
|
|
1367
|
+
"documentation": {
|
|
1368
|
+
"kind": "markdown",
|
|
1369
|
+
"value": "**[Od verzije 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**Parametri**\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**Povratna vrednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
1370
|
+
}
|
|
1371
|
+
},
|
|
1372
|
+
"parametersInfo": {
|
|
1373
|
+
"min": 1,
|
|
1374
|
+
"max": 3
|
|
1375
|
+
}
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
"type": "function",
|
|
1379
|
+
"name": "date",
|
|
1380
|
+
"bundle": "core",
|
|
1381
|
+
"sinceVersion": "1.24",
|
|
1382
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date5",
|
|
1383
|
+
"description": "Creates a copy of the given Date.",
|
|
1384
|
+
"examples": "\n##### Primer\n\nCreates a copy of the current Date value\n\n```arcade\nvar copiedDate = Date(Now())\n```\n\n",
|
|
1385
|
+
"completion": {
|
|
1386
|
+
"label": "Date",
|
|
1387
|
+
"detail": "Date(dateValue) -> Date",
|
|
1388
|
+
"insertText": "Date(${1:dateValue_})$0",
|
|
1389
|
+
"insertTextMode": 2,
|
|
1390
|
+
"insertTextFormat": 2,
|
|
1391
|
+
"kind": 3,
|
|
1392
|
+
"documentation": {
|
|
1393
|
+
"kind": "markdown",
|
|
1394
|
+
"value": "**[Od verzije 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of the given Date.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date to copy.\n\n**Povratna vrednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
1395
|
+
}
|
|
1396
|
+
},
|
|
1397
|
+
"parametersInfo": {
|
|
1398
|
+
"min": 1,
|
|
1399
|
+
"max": 1
|
|
1400
|
+
}
|
|
1301
1401
|
}
|
|
1302
1402
|
],
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
"
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
"
|
|
1319
|
-
|
|
1403
|
+
[
|
|
1404
|
+
{
|
|
1405
|
+
"type": "function",
|
|
1406
|
+
"name": "dateadd",
|
|
1407
|
+
"bundle": "core",
|
|
1408
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd1",
|
|
1409
|
+
"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.",
|
|
1410
|
+
"examples": "\n##### Primer\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",
|
|
1411
|
+
"completion": {
|
|
1412
|
+
"label": "DateAdd",
|
|
1413
|
+
"detail": "DateAdd(dateValue, addValue, units?) -> Date",
|
|
1414
|
+
"insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
|
|
1415
|
+
"insertTextMode": 2,
|
|
1416
|
+
"insertTextFormat": 2,
|
|
1417
|
+
"kind": 3,
|
|
1418
|
+
"documentation": {
|
|
1419
|
+
"kind": "markdown",
|
|
1420
|
+
"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**Parametri**\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**Povratna vrednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
1421
|
+
}
|
|
1422
|
+
},
|
|
1423
|
+
"parametersInfo": {
|
|
1424
|
+
"min": 2,
|
|
1425
|
+
"max": 3
|
|
1320
1426
|
}
|
|
1321
1427
|
},
|
|
1322
|
-
|
|
1323
|
-
"
|
|
1324
|
-
"
|
|
1428
|
+
{
|
|
1429
|
+
"type": "function",
|
|
1430
|
+
"name": "dateadd",
|
|
1431
|
+
"bundle": "core",
|
|
1432
|
+
"sinceVersion": "1.24",
|
|
1433
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd2",
|
|
1434
|
+
"description": "Adds a specified amount of time in the given units to a DateOnly value and returns a new DateOnly value.",
|
|
1435
|
+
"examples": "\n##### Primeri\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",
|
|
1436
|
+
"completion": {
|
|
1437
|
+
"label": "DateAdd",
|
|
1438
|
+
"detail": "DateAdd(dateOnlyValue, addValue, units?) -> DateOnly",
|
|
1439
|
+
"insertText": "DateAdd(${1:dateOnlyValue_}, ${2:addValue_})$0",
|
|
1440
|
+
"insertTextMode": 2,
|
|
1441
|
+
"insertTextFormat": 2,
|
|
1442
|
+
"kind": 3,
|
|
1443
|
+
"documentation": {
|
|
1444
|
+
"kind": "markdown",
|
|
1445
|
+
"value": "**[Od verzije 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**Parametri**\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**Povratna vrednost**: DateOnly"
|
|
1446
|
+
}
|
|
1447
|
+
},
|
|
1448
|
+
"parametersInfo": {
|
|
1449
|
+
"min": 2,
|
|
1450
|
+
"max": 3
|
|
1451
|
+
}
|
|
1452
|
+
},
|
|
1453
|
+
{
|
|
1454
|
+
"type": "function",
|
|
1455
|
+
"name": "dateadd",
|
|
1456
|
+
"bundle": "core",
|
|
1457
|
+
"sinceVersion": "1.24",
|
|
1458
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd3",
|
|
1459
|
+
"description": "Adds a specified amount of time in the given units to a Time value and returns a new Time value.",
|
|
1460
|
+
"examples": "\n##### Primeri\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",
|
|
1461
|
+
"completion": {
|
|
1462
|
+
"label": "DateAdd",
|
|
1463
|
+
"detail": "DateAdd(timeValue, addValue, units?) -> Time",
|
|
1464
|
+
"insertText": "DateAdd(${1:timeValue_}, ${2:addValue_})$0",
|
|
1465
|
+
"insertTextMode": 2,
|
|
1466
|
+
"insertTextFormat": 2,
|
|
1467
|
+
"kind": 3,
|
|
1468
|
+
"documentation": {
|
|
1469
|
+
"kind": "markdown",
|
|
1470
|
+
"value": "**[Od verzije 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**Parametri**\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**Povratna vrednost**: Time"
|
|
1471
|
+
}
|
|
1472
|
+
},
|
|
1473
|
+
"parametersInfo": {
|
|
1474
|
+
"min": 2,
|
|
1475
|
+
"max": 3
|
|
1476
|
+
}
|
|
1325
1477
|
}
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
"
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
"
|
|
1343
|
-
|
|
1478
|
+
],
|
|
1479
|
+
[
|
|
1480
|
+
{
|
|
1481
|
+
"type": "function",
|
|
1482
|
+
"name": "datediff",
|
|
1483
|
+
"bundle": "core",
|
|
1484
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
|
|
1485
|
+
"description": "Subtracts two Dates, and returns the difference in the specified units.",
|
|
1486
|
+
"examples": "\n##### Primeri\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",
|
|
1487
|
+
"completion": {
|
|
1488
|
+
"label": "DateDiff",
|
|
1489
|
+
"detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
|
|
1490
|
+
"insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
|
|
1491
|
+
"insertTextMode": 2,
|
|
1492
|
+
"insertTextFormat": 2,
|
|
1493
|
+
"kind": 3,
|
|
1494
|
+
"documentation": {
|
|
1495
|
+
"kind": "markdown",
|
|
1496
|
+
"value": "Subtracts two Dates, and returns the difference in the specified units.\n\n**Parametri**\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**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1497
|
+
}
|
|
1498
|
+
},
|
|
1499
|
+
"parametersInfo": {
|
|
1500
|
+
"min": 2,
|
|
1501
|
+
"max": 4
|
|
1344
1502
|
}
|
|
1345
1503
|
},
|
|
1346
|
-
|
|
1347
|
-
"
|
|
1348
|
-
"
|
|
1504
|
+
{
|
|
1505
|
+
"type": "function",
|
|
1506
|
+
"name": "datediff",
|
|
1507
|
+
"bundle": "core",
|
|
1508
|
+
"sinceVersion": "1.24",
|
|
1509
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff2",
|
|
1510
|
+
"description": "Subtracts two DateOnly values, and returns the difference in the specified units.",
|
|
1511
|
+
"examples": "\n##### Primer\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",
|
|
1512
|
+
"completion": {
|
|
1513
|
+
"label": "DateDiff",
|
|
1514
|
+
"detail": "DateDiff(dateOnly1, dateOnly2, units?) -> Number",
|
|
1515
|
+
"insertText": "DateDiff(${1:dateOnly1_}, ${2:dateOnly2_})$0",
|
|
1516
|
+
"insertTextMode": 2,
|
|
1517
|
+
"insertTextFormat": 2,
|
|
1518
|
+
"kind": 3,
|
|
1519
|
+
"documentation": {
|
|
1520
|
+
"kind": "markdown",
|
|
1521
|
+
"value": "**[Od verzije 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**Parametri**\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**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1522
|
+
}
|
|
1523
|
+
},
|
|
1524
|
+
"parametersInfo": {
|
|
1525
|
+
"min": 2,
|
|
1526
|
+
"max": 3
|
|
1527
|
+
}
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
"type": "function",
|
|
1531
|
+
"name": "datediff",
|
|
1532
|
+
"bundle": "core",
|
|
1533
|
+
"sinceVersion": "1.24",
|
|
1534
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff3",
|
|
1535
|
+
"description": "Subtracts two Time values, and returns the difference in the specified units.",
|
|
1536
|
+
"examples": "\n##### Primer\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",
|
|
1537
|
+
"completion": {
|
|
1538
|
+
"label": "DateDiff",
|
|
1539
|
+
"detail": "DateDiff(time1, time2, units?) -> Number",
|
|
1540
|
+
"insertText": "DateDiff(${1:time1_}, ${2:time2_})$0",
|
|
1541
|
+
"insertTextMode": 2,
|
|
1542
|
+
"insertTextFormat": 2,
|
|
1543
|
+
"kind": 3,
|
|
1544
|
+
"documentation": {
|
|
1545
|
+
"kind": "markdown",
|
|
1546
|
+
"value": "**[Od verzije 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**Parametri**\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**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1547
|
+
}
|
|
1548
|
+
},
|
|
1549
|
+
"parametersInfo": {
|
|
1550
|
+
"min": 2,
|
|
1551
|
+
"max": 3
|
|
1552
|
+
}
|
|
1349
1553
|
}
|
|
1350
|
-
|
|
1554
|
+
],
|
|
1555
|
+
[
|
|
1556
|
+
{
|
|
1557
|
+
"type": "function",
|
|
1558
|
+
"name": "dateonly",
|
|
1559
|
+
"bundle": "core",
|
|
1560
|
+
"sinceVersion": "1.24",
|
|
1561
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly1",
|
|
1562
|
+
"description": "Creates a DateOnly value based on the current date in the time zone of the profile's execution context.",
|
|
1563
|
+
"examples": "\n##### Primer\n\nReturns the current DateOnly (no time)\n\n```arcade\nDateOnly()\n// returns the current date, i.e. 2023-09-12\n```\n\n",
|
|
1564
|
+
"completion": {
|
|
1565
|
+
"label": "DateOnly",
|
|
1566
|
+
"detail": "DateOnly() -> DateOnly",
|
|
1567
|
+
"insertText": "DateOnly($0)",
|
|
1568
|
+
"insertTextMode": 2,
|
|
1569
|
+
"insertTextFormat": 2,
|
|
1570
|
+
"kind": 3,
|
|
1571
|
+
"documentation": {
|
|
1572
|
+
"kind": "markdown",
|
|
1573
|
+
"value": "**[Od verzije 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**Povratna vrednost**: DateOnly"
|
|
1574
|
+
}
|
|
1575
|
+
},
|
|
1576
|
+
"parametersInfo": {
|
|
1577
|
+
"min": 0,
|
|
1578
|
+
"max": 0
|
|
1579
|
+
}
|
|
1580
|
+
},
|
|
1581
|
+
{
|
|
1582
|
+
"type": "function",
|
|
1583
|
+
"name": "dateonly",
|
|
1584
|
+
"bundle": "core",
|
|
1585
|
+
"sinceVersion": "1.24",
|
|
1586
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly2",
|
|
1587
|
+
"description": "Creates a DateOnly value from a given date.",
|
|
1588
|
+
"examples": "\n##### Primer\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",
|
|
1589
|
+
"completion": {
|
|
1590
|
+
"label": "DateOnly",
|
|
1591
|
+
"detail": "DateOnly(dateValue) -> DateOnly",
|
|
1592
|
+
"insertText": "DateOnly(${1:dateValue_})$0",
|
|
1593
|
+
"insertTextMode": 2,
|
|
1594
|
+
"insertTextFormat": 2,
|
|
1595
|
+
"kind": 3,
|
|
1596
|
+
"documentation": {
|
|
1597
|
+
"kind": "markdown",
|
|
1598
|
+
"value": "**[Od verzije 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from a given date.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to create the DateOnly value.\n\n**Povratna vrednost**: DateOnly"
|
|
1599
|
+
}
|
|
1600
|
+
},
|
|
1601
|
+
"parametersInfo": {
|
|
1602
|
+
"min": 1,
|
|
1603
|
+
"max": 1
|
|
1604
|
+
}
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
"type": "function",
|
|
1608
|
+
"name": "dateonly",
|
|
1609
|
+
"bundle": "core",
|
|
1610
|
+
"sinceVersion": "1.24",
|
|
1611
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly3",
|
|
1612
|
+
"description": "Creates a DateOnly date with the given Unix epoch number.",
|
|
1613
|
+
"examples": "\n##### Primer\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",
|
|
1614
|
+
"completion": {
|
|
1615
|
+
"label": "DateOnly",
|
|
1616
|
+
"detail": "DateOnly(epoch) -> DateOnly",
|
|
1617
|
+
"insertText": "DateOnly(${1:epoch_})$0",
|
|
1618
|
+
"insertTextMode": 2,
|
|
1619
|
+
"insertTextFormat": 2,
|
|
1620
|
+
"kind": 3,
|
|
1621
|
+
"documentation": {
|
|
1622
|
+
"kind": "markdown",
|
|
1623
|
+
"value": "**[Od verzije 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly date with the given Unix epoch number.\n\n**Parametar**\n\n- **epoch**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Povratna vrednost**: DateOnly"
|
|
1624
|
+
}
|
|
1625
|
+
},
|
|
1626
|
+
"parametersInfo": {
|
|
1627
|
+
"min": 1,
|
|
1628
|
+
"max": 1
|
|
1629
|
+
}
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
"type": "function",
|
|
1633
|
+
"name": "dateonly",
|
|
1634
|
+
"bundle": "core",
|
|
1635
|
+
"sinceVersion": "1.24",
|
|
1636
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly4",
|
|
1637
|
+
"description": "Creates a DateOnly value from inputs representing the year, month, and day.",
|
|
1638
|
+
"examples": "\n##### Primer\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",
|
|
1639
|
+
"completion": {
|
|
1640
|
+
"label": "DateOnly",
|
|
1641
|
+
"detail": "DateOnly(year, month, day) -> DateOnly",
|
|
1642
|
+
"insertText": "DateOnly(${1:year_}, ${2:month_}, ${3:day_})$0",
|
|
1643
|
+
"insertTextMode": 2,
|
|
1644
|
+
"insertTextFormat": 2,
|
|
1645
|
+
"kind": 3,
|
|
1646
|
+
"documentation": {
|
|
1647
|
+
"kind": "markdown",
|
|
1648
|
+
"value": "**[Od verzije 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**Parametri**\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**Povratna vrednost**: DateOnly"
|
|
1649
|
+
}
|
|
1650
|
+
},
|
|
1651
|
+
"parametersInfo": {
|
|
1652
|
+
"min": 3,
|
|
1653
|
+
"max": 3
|
|
1654
|
+
}
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
"type": "function",
|
|
1658
|
+
"name": "dateonly",
|
|
1659
|
+
"bundle": "core",
|
|
1660
|
+
"sinceVersion": "1.24",
|
|
1661
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly5",
|
|
1662
|
+
"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.",
|
|
1663
|
+
"examples": "\n##### Primeri\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",
|
|
1664
|
+
"completion": {
|
|
1665
|
+
"label": "DateOnly",
|
|
1666
|
+
"detail": "DateOnly(dateValue, format?) -> DateOnly",
|
|
1667
|
+
"insertText": "DateOnly(${1:dateValue_})$0",
|
|
1668
|
+
"insertTextMode": 2,
|
|
1669
|
+
"insertTextFormat": 2,
|
|
1670
|
+
"kind": 3,
|
|
1671
|
+
"documentation": {
|
|
1672
|
+
"kind": "markdown",
|
|
1673
|
+
"value": "**[Od verzije 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**Parametri**\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**Povratna vrednost**: DateOnly"
|
|
1674
|
+
}
|
|
1675
|
+
},
|
|
1676
|
+
"parametersInfo": {
|
|
1677
|
+
"min": 1,
|
|
1678
|
+
"max": 2
|
|
1679
|
+
}
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"type": "function",
|
|
1683
|
+
"name": "dateonly",
|
|
1684
|
+
"bundle": "core",
|
|
1685
|
+
"sinceVersion": "1.24",
|
|
1686
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly6",
|
|
1687
|
+
"description": "Creates a copy of a DateOnly value.",
|
|
1688
|
+
"examples": "\n##### Primer\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",
|
|
1689
|
+
"completion": {
|
|
1690
|
+
"label": "DateOnly",
|
|
1691
|
+
"detail": "DateOnly(dateOnlyValue) -> DateOnly",
|
|
1692
|
+
"insertText": "DateOnly(${1:dateOnlyValue_})$0",
|
|
1693
|
+
"insertTextMode": 2,
|
|
1694
|
+
"insertTextFormat": 2,
|
|
1695
|
+
"kind": 3,
|
|
1696
|
+
"documentation": {
|
|
1697
|
+
"kind": "markdown",
|
|
1698
|
+
"value": "**[Od verzije 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of a DateOnly value.\n\n**Parametar**\n\n- **dateOnlyValue**: DateOnly - The DateOnly value to copy.\n\n**Povratna vrednost**: DateOnly"
|
|
1699
|
+
}
|
|
1700
|
+
},
|
|
1701
|
+
"parametersInfo": {
|
|
1702
|
+
"min": 1,
|
|
1703
|
+
"max": 1
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
],
|
|
1351
1707
|
{
|
|
1352
1708
|
"type": "function",
|
|
1353
1709
|
"name": "day",
|
|
1354
1710
|
"bundle": "core",
|
|
1355
1711
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
|
|
1356
1712
|
"description": "Vraća dan u mesecu datog datuma.",
|
|
1357
|
-
"examples": "\n#####
|
|
1713
|
+
"examples": "\n##### Primeri\n\nPribavlja dan u mesecu trenutnog datuma\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",
|
|
1358
1714
|
"completion": {
|
|
1359
1715
|
"label": "Day",
|
|
1360
1716
|
"detail": "Day(dateValue) -> Number",
|
|
@@ -1364,7 +1720,7 @@
|
|
|
1364
1720
|
"kind": 3,
|
|
1365
1721
|
"documentation": {
|
|
1366
1722
|
"kind": "markdown",
|
|
1367
|
-
"value": "Vraća dan u mesecu datog datuma.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrednost datuma od koje se pribavlja dan u mesecu.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1723
|
+
"value": "Vraća dan u mesecu datog datuma.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrednost datuma od koje se pribavlja dan u mesecu.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1368
1724
|
}
|
|
1369
1725
|
},
|
|
1370
1726
|
"parametersInfo": {
|
|
@@ -1372,30 +1728,57 @@
|
|
|
1372
1728
|
"max": 1
|
|
1373
1729
|
}
|
|
1374
1730
|
},
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
"
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
"
|
|
1391
|
-
|
|
1731
|
+
[
|
|
1732
|
+
{
|
|
1733
|
+
"type": "function",
|
|
1734
|
+
"name": "hour",
|
|
1735
|
+
"bundle": "core",
|
|
1736
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour1",
|
|
1737
|
+
"description": "Returns the hour of the time in the given date (0-23).",
|
|
1738
|
+
"examples": "\n##### Primer\n\nGets the hour of the current time\n\n```arcade\nHour(Now())\n```\n\n",
|
|
1739
|
+
"completion": {
|
|
1740
|
+
"label": "Hour",
|
|
1741
|
+
"detail": "Hour(dateValue) -> Number",
|
|
1742
|
+
"insertText": "Hour(${1:dateValue_})$0",
|
|
1743
|
+
"insertTextMode": 2,
|
|
1744
|
+
"insertTextFormat": 2,
|
|
1745
|
+
"kind": 3,
|
|
1746
|
+
"documentation": {
|
|
1747
|
+
"kind": "markdown",
|
|
1748
|
+
"value": "Returns the hour of the time in the given date (0-23).\n\n**Parametar**\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**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1749
|
+
}
|
|
1750
|
+
},
|
|
1751
|
+
"parametersInfo": {
|
|
1752
|
+
"min": 1,
|
|
1753
|
+
"max": 1
|
|
1392
1754
|
}
|
|
1393
1755
|
},
|
|
1394
|
-
|
|
1395
|
-
"
|
|
1396
|
-
"
|
|
1756
|
+
{
|
|
1757
|
+
"type": "function",
|
|
1758
|
+
"name": "hour",
|
|
1759
|
+
"bundle": "core",
|
|
1760
|
+
"sinceVersion": "1.24",
|
|
1761
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour2",
|
|
1762
|
+
"description": "Returns the hour of the given time (0-23).",
|
|
1763
|
+
"examples": "\n##### Primer\n\nGets the hour of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 2\n```\n\n",
|
|
1764
|
+
"completion": {
|
|
1765
|
+
"label": "Hour",
|
|
1766
|
+
"detail": "Hour(timeValue) -> Number",
|
|
1767
|
+
"insertText": "Hour(${1:timeValue_})$0",
|
|
1768
|
+
"insertTextMode": 2,
|
|
1769
|
+
"insertTextFormat": 2,
|
|
1770
|
+
"kind": 3,
|
|
1771
|
+
"documentation": {
|
|
1772
|
+
"kind": "markdown",
|
|
1773
|
+
"value": "**[Od verzije 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the hour of the given time (0-23).\n\n**Parametar**\n\n- **timeValue**: Time - A Time value from which to get the hour.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1774
|
+
}
|
|
1775
|
+
},
|
|
1776
|
+
"parametersInfo": {
|
|
1777
|
+
"min": 1,
|
|
1778
|
+
"max": 1
|
|
1779
|
+
}
|
|
1397
1780
|
}
|
|
1398
|
-
|
|
1781
|
+
],
|
|
1399
1782
|
{
|
|
1400
1783
|
"type": "function",
|
|
1401
1784
|
"name": "isomonth",
|
|
@@ -1403,7 +1786,7 @@
|
|
|
1403
1786
|
"sinceVersion": "1.12",
|
|
1404
1787
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
|
|
1405
1788
|
"description": "Vraća mesec datog datuma na osnovu standarda ISO 8601. Vrednosti se kreću od 1-12, gde je januar `1`, a decembar` 12`.",
|
|
1406
|
-
"examples": "\n#####
|
|
1789
|
+
"examples": "\n##### Primeri\n\nPribavlja mesec datog datuma, na osnovu standarda ISO 8601. Povraćaj 12, za mesec decembar.\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",
|
|
1407
1790
|
"completion": {
|
|
1408
1791
|
"label": "ISOMonth",
|
|
1409
1792
|
"detail": "ISOMonth(dateValue) -> Number",
|
|
@@ -1413,7 +1796,7 @@
|
|
|
1413
1796
|
"kind": 3,
|
|
1414
1797
|
"documentation": {
|
|
1415
1798
|
"kind": "markdown",
|
|
1416
|
-
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća mesec datog datuma na osnovu standarda ISO 8601. Vrednosti se kreću od 1-12, gde je januar `1`, a decembar` 12`.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrednost datuma od koje se pribavlja mesec.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1799
|
+
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća mesec datog datuma na osnovu standarda ISO 8601. Vrednosti se kreću od 1-12, gde je januar `1`, a decembar` 12`.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrednost datuma od koje se pribavlja mesec.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1417
1800
|
}
|
|
1418
1801
|
},
|
|
1419
1802
|
"parametersInfo": {
|
|
@@ -1428,67 +1811,17 @@
|
|
|
1428
1811
|
"sinceVersion": "1.12",
|
|
1429
1812
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
|
|
1430
1813
|
"description": "Vraća nedelju u godini datog datuma na osnovu ISO 8601 sedmičnog kalendara. Vrednosti se kreću od 1-53, gde je prva sedmica u godini `1`, a poslednja sedmica u godini` 52` ili `53`, u zavisnosti od godine.",
|
|
1431
|
-
"examples": "\n#####
|
|
1432
|
-
"completion": {
|
|
1433
|
-
"label": "ISOWeek",
|
|
1434
|
-
"detail": "ISOWeek(dateValue) -> Number",
|
|
1435
|
-
"insertText": "ISOWeek(${1:dateValue_})$0",
|
|
1436
|
-
"insertTextMode": 2,
|
|
1437
|
-
"insertTextFormat": 2,
|
|
1438
|
-
"kind": 3,
|
|
1439
|
-
"documentation": {
|
|
1440
|
-
"kind": "markdown",
|
|
1441
|
-
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća nedelju u godini datog datuma na osnovu ISO 8601 sedmičnog kalendara. Vrednosti se kreću od 1-53, gde je prva sedmica u godini `1`, a poslednja sedmica u godini` 52` ili `53`, u zavisnosti od godine.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrednost datuma od koje se pribavlja sedmica.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1442
|
-
}
|
|
1443
|
-
},
|
|
1444
|
-
"parametersInfo": {
|
|
1445
|
-
"min": 1,
|
|
1446
|
-
"max": 1
|
|
1447
|
-
}
|
|
1448
|
-
},
|
|
1449
|
-
{
|
|
1450
|
-
"type": "function",
|
|
1451
|
-
"name": "isoweekday",
|
|
1452
|
-
"bundle": "core",
|
|
1453
|
-
"sinceVersion": "1.12",
|
|
1454
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
|
|
1455
|
-
"description": "Vraća dan u sedmici datog datuma na osnovu standarda ISO 8601. Vrednosti se kreću od 1-7, gde je ponedeljak `1`, a nedelja` 7`.",
|
|
1456
|
-
"examples": "\n##### Primer\n\nVraća dan u sedmici datog datuma na osnovu standarda ISO 8601. Povraćaj `3`, za sredu.\n\n```arcade\nISOWeekday(Date(1980, 11, 31))\n```\n\n",
|
|
1457
|
-
"completion": {
|
|
1458
|
-
"label": "ISOWeekday",
|
|
1459
|
-
"detail": "ISOWeekday(dateValue) -> Number",
|
|
1460
|
-
"insertText": "ISOWeekday(${1:dateValue_})$0",
|
|
1461
|
-
"insertTextMode": 2,
|
|
1462
|
-
"insertTextFormat": 2,
|
|
1463
|
-
"kind": 3,
|
|
1464
|
-
"documentation": {
|
|
1465
|
-
"kind": "markdown",
|
|
1466
|
-
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća dan u sedmici datog datuma na osnovu standarda ISO 8601. Vrednosti se kreću od 1-7, gde je ponedeljak `1`, a nedelja` 7`.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrednost datuma od koje se vraća dan u sedmici.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1467
|
-
}
|
|
1468
|
-
},
|
|
1469
|
-
"parametersInfo": {
|
|
1470
|
-
"min": 1,
|
|
1471
|
-
"max": 1
|
|
1472
|
-
}
|
|
1473
|
-
},
|
|
1474
|
-
{
|
|
1475
|
-
"type": "function",
|
|
1476
|
-
"name": "isoyear",
|
|
1477
|
-
"bundle": "core",
|
|
1478
|
-
"sinceVersion": "1.12",
|
|
1479
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
|
|
1480
|
-
"description": "Vraća godinu za dati datum na osnovu ISO 8601 kalendar za nedelju datuma.",
|
|
1481
|
-
"examples": "\n##### Primer\n\nPribavlja godnu datog datuma na osnovu ISO 8601 sedmičnog kalendara. Povraćaj `1981`, jer je ovaj datum uključen u prvu sedmicu sledeće godine.\n\n```arcade\nISOYear(Date(1980, 11, 31))\n```\n\n",
|
|
1482
|
-
"completion": {
|
|
1483
|
-
"label": "ISOYear",
|
|
1484
|
-
"detail": "ISOYear(dateValue) -> Number",
|
|
1485
|
-
"insertText": "ISOYear(${1:dateValue_})$0",
|
|
1814
|
+
"examples": "\n##### Primeri\n\nPribavlja sedmicu datog datuma, na osnovu standarda ISO 8601. Povraćaj `1`, jer je ovaj datum uključen u prvu sedmicu sledeće godine.\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",
|
|
1815
|
+
"completion": {
|
|
1816
|
+
"label": "ISOWeek",
|
|
1817
|
+
"detail": "ISOWeek(dateValue) -> Number",
|
|
1818
|
+
"insertText": "ISOWeek(${1:dateValue_})$0",
|
|
1486
1819
|
"insertTextMode": 2,
|
|
1487
1820
|
"insertTextFormat": 2,
|
|
1488
1821
|
"kind": 3,
|
|
1489
1822
|
"documentation": {
|
|
1490
1823
|
"kind": "markdown",
|
|
1491
|
-
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća
|
|
1824
|
+
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća nedelju u godini datog datuma na osnovu ISO 8601 sedmičnog kalendara. Vrednosti se kreću od 1-53, gde je prva sedmica u godini `1`, a poslednja sedmica u godini` 52` ili `53`, u zavisnosti od godine.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrednost datuma od koje se pribavlja sedmica.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1492
1825
|
}
|
|
1493
1826
|
},
|
|
1494
1827
|
"parametersInfo": {
|
|
@@ -1498,21 +1831,22 @@
|
|
|
1498
1831
|
},
|
|
1499
1832
|
{
|
|
1500
1833
|
"type": "function",
|
|
1501
|
-
"name": "
|
|
1834
|
+
"name": "isoweekday",
|
|
1502
1835
|
"bundle": "core",
|
|
1503
|
-
"
|
|
1504
|
-
"
|
|
1505
|
-
"
|
|
1836
|
+
"sinceVersion": "1.12",
|
|
1837
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
|
|
1838
|
+
"description": "Vraća dan u sedmici datog datuma na osnovu standarda ISO 8601. Vrednosti se kreću od 1-7, gde je ponedeljak `1`, a nedelja` 7`.",
|
|
1839
|
+
"examples": "\n##### Primeri\n\nVraća dan u sedmici datog datuma na osnovu standarda ISO 8601. Povraćaj `3`, za sredu.\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",
|
|
1506
1840
|
"completion": {
|
|
1507
|
-
"label": "
|
|
1508
|
-
"detail": "
|
|
1509
|
-
"insertText": "
|
|
1841
|
+
"label": "ISOWeekday",
|
|
1842
|
+
"detail": "ISOWeekday(dateValue) -> Number",
|
|
1843
|
+
"insertText": "ISOWeekday(${1:dateValue_})$0",
|
|
1510
1844
|
"insertTextMode": 2,
|
|
1511
1845
|
"insertTextFormat": 2,
|
|
1512
1846
|
"kind": 3,
|
|
1513
1847
|
"documentation": {
|
|
1514
1848
|
"kind": "markdown",
|
|
1515
|
-
"value": "
|
|
1849
|
+
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća dan u sedmici datog datuma na osnovu standarda ISO 8601. Vrednosti se kreću od 1-7, gde je ponedeljak `1`, a nedelja` 7`.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrednost datuma od koje se vraća dan u sedmici.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1516
1850
|
}
|
|
1517
1851
|
},
|
|
1518
1852
|
"parametersInfo": {
|
|
@@ -1522,21 +1856,22 @@
|
|
|
1522
1856
|
},
|
|
1523
1857
|
{
|
|
1524
1858
|
"type": "function",
|
|
1525
|
-
"name": "
|
|
1859
|
+
"name": "isoyear",
|
|
1526
1860
|
"bundle": "core",
|
|
1527
|
-
"
|
|
1528
|
-
"
|
|
1529
|
-
"
|
|
1861
|
+
"sinceVersion": "1.12",
|
|
1862
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
|
|
1863
|
+
"description": "Vraća godinu za dati datum na osnovu ISO 8601 kalendar za nedelju datuma.",
|
|
1864
|
+
"examples": "\n##### Primeri\n\nPribavlja godnu datog datuma na osnovu ISO 8601 sedmičnog kalendara. Povraćaj `1981`, jer je ovaj datum uključen u prvu sedmicu sledeće godine.\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",
|
|
1530
1865
|
"completion": {
|
|
1531
|
-
"label": "
|
|
1532
|
-
"detail": "
|
|
1533
|
-
"insertText": "
|
|
1866
|
+
"label": "ISOYear",
|
|
1867
|
+
"detail": "ISOYear(dateValue) -> Number",
|
|
1868
|
+
"insertText": "ISOYear(${1:dateValue_})$0",
|
|
1534
1869
|
"insertTextMode": 2,
|
|
1535
1870
|
"insertTextFormat": 2,
|
|
1536
1871
|
"kind": 3,
|
|
1537
1872
|
"documentation": {
|
|
1538
1873
|
"kind": "markdown",
|
|
1539
|
-
"value": "
|
|
1874
|
+
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća godinu za dati datum na osnovu ISO 8601 kalendar za nedelju datuma.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrednost datuma od koje se pribavlja godina.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1540
1875
|
}
|
|
1541
1876
|
},
|
|
1542
1877
|
"parametersInfo": {
|
|
@@ -1544,13 +1879,115 @@
|
|
|
1544
1879
|
"max": 1
|
|
1545
1880
|
}
|
|
1546
1881
|
},
|
|
1882
|
+
[
|
|
1883
|
+
{
|
|
1884
|
+
"type": "function",
|
|
1885
|
+
"name": "millisecond",
|
|
1886
|
+
"bundle": "core",
|
|
1887
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond1",
|
|
1888
|
+
"description": "Returns the millisecond of the time in the date.",
|
|
1889
|
+
"examples": "\n##### Primer\n\nGets the millisecond of the current time\n\n```arcade\nMillisecond(Now())\n```\n\n",
|
|
1890
|
+
"completion": {
|
|
1891
|
+
"label": "Millisecond",
|
|
1892
|
+
"detail": "Millisecond(dateValue) -> Number",
|
|
1893
|
+
"insertText": "Millisecond(${1:dateValue_})$0",
|
|
1894
|
+
"insertTextMode": 2,
|
|
1895
|
+
"insertTextFormat": 2,
|
|
1896
|
+
"kind": 3,
|
|
1897
|
+
"documentation": {
|
|
1898
|
+
"kind": "markdown",
|
|
1899
|
+
"value": "Returns the millisecond of the time in the date.\n\n**Parametar**\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**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1900
|
+
}
|
|
1901
|
+
},
|
|
1902
|
+
"parametersInfo": {
|
|
1903
|
+
"min": 1,
|
|
1904
|
+
"max": 1
|
|
1905
|
+
}
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
"type": "function",
|
|
1909
|
+
"name": "millisecond",
|
|
1910
|
+
"bundle": "core",
|
|
1911
|
+
"sinceVersion": "1.24",
|
|
1912
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond2",
|
|
1913
|
+
"description": "Returns the millisecond of the given time.",
|
|
1914
|
+
"examples": "\n##### Primer\n\nGets the millisecond of the time\n\n```arcade\nHour(Time(2, 59, 23, 450))\n// returns 450\n```\n\n",
|
|
1915
|
+
"completion": {
|
|
1916
|
+
"label": "Millisecond",
|
|
1917
|
+
"detail": "Millisecond(timeValue) -> Number",
|
|
1918
|
+
"insertText": "Millisecond(${1:timeValue_})$0",
|
|
1919
|
+
"insertTextMode": 2,
|
|
1920
|
+
"insertTextFormat": 2,
|
|
1921
|
+
"kind": 3,
|
|
1922
|
+
"documentation": {
|
|
1923
|
+
"kind": "markdown",
|
|
1924
|
+
"value": "**[Od verzije 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the millisecond of the given time.\n\n**Parametar**\n\n- **timeValue**: Time - A Time value from which to get the millisecond.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1925
|
+
}
|
|
1926
|
+
},
|
|
1927
|
+
"parametersInfo": {
|
|
1928
|
+
"min": 1,
|
|
1929
|
+
"max": 1
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
],
|
|
1933
|
+
[
|
|
1934
|
+
{
|
|
1935
|
+
"type": "function",
|
|
1936
|
+
"name": "minute",
|
|
1937
|
+
"bundle": "core",
|
|
1938
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute1",
|
|
1939
|
+
"description": "Returns the minute of the time in the given date.",
|
|
1940
|
+
"examples": "\n##### Primer\n\nGets the minute of the current time\n\n```arcade\nMinute(Now())\n```\n\n",
|
|
1941
|
+
"completion": {
|
|
1942
|
+
"label": "Minute",
|
|
1943
|
+
"detail": "Minute(dateValue) -> Number",
|
|
1944
|
+
"insertText": "Minute(${1:dateValue_})$0",
|
|
1945
|
+
"insertTextMode": 2,
|
|
1946
|
+
"insertTextFormat": 2,
|
|
1947
|
+
"kind": 3,
|
|
1948
|
+
"documentation": {
|
|
1949
|
+
"kind": "markdown",
|
|
1950
|
+
"value": "Returns the minute of the time in the given date.\n\n**Parametar**\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**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1951
|
+
}
|
|
1952
|
+
},
|
|
1953
|
+
"parametersInfo": {
|
|
1954
|
+
"min": 1,
|
|
1955
|
+
"max": 1
|
|
1956
|
+
}
|
|
1957
|
+
},
|
|
1958
|
+
{
|
|
1959
|
+
"type": "function",
|
|
1960
|
+
"name": "minute",
|
|
1961
|
+
"bundle": "core",
|
|
1962
|
+
"sinceVersion": "1.24",
|
|
1963
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute2",
|
|
1964
|
+
"description": "Returns the minute of the given time.",
|
|
1965
|
+
"examples": "\n##### Primer\n\nGets the minute of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 59\n```\n\n",
|
|
1966
|
+
"completion": {
|
|
1967
|
+
"label": "Minute",
|
|
1968
|
+
"detail": "Minute(timeValue) -> Number",
|
|
1969
|
+
"insertText": "Minute(${1:timeValue_})$0",
|
|
1970
|
+
"insertTextMode": 2,
|
|
1971
|
+
"insertTextFormat": 2,
|
|
1972
|
+
"kind": 3,
|
|
1973
|
+
"documentation": {
|
|
1974
|
+
"kind": "markdown",
|
|
1975
|
+
"value": "**[Od verzije 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the minute of the given time.\n\n**Parametar**\n\n- **timeValue**: Time - A Time value from which to get the minute.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1976
|
+
}
|
|
1977
|
+
},
|
|
1978
|
+
"parametersInfo": {
|
|
1979
|
+
"min": 1,
|
|
1980
|
+
"max": 1
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1983
|
+
],
|
|
1547
1984
|
{
|
|
1548
1985
|
"type": "function",
|
|
1549
1986
|
"name": "month",
|
|
1550
1987
|
"bundle": "core",
|
|
1551
1988
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#month",
|
|
1552
1989
|
"description": "Vraća mesec datog datuma. Vrednosti su u opsegu od 0-11 gde je januar `0` a decembar `11`.",
|
|
1553
|
-
"examples": "\n#####
|
|
1990
|
+
"examples": "\n##### Primeri\n\nPribavlja mesec datog datuma. Povraćaj 11, za mesec decembar.\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",
|
|
1554
1991
|
"completion": {
|
|
1555
1992
|
"label": "Month",
|
|
1556
1993
|
"detail": "Month(dateValue) -> Number",
|
|
@@ -1560,7 +1997,7 @@
|
|
|
1560
1997
|
"kind": 3,
|
|
1561
1998
|
"documentation": {
|
|
1562
1999
|
"kind": "markdown",
|
|
1563
|
-
"value": "Vraća mesec datog datuma. Vrednosti su u opsegu od 0-11 gde je januar `0` a decembar `11`.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrednost datuma od koje se pribavlja mesec.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
2000
|
+
"value": "Vraća mesec datog datuma. Vrednosti su u opsegu od 0-11 gde je januar `0` a decembar `11`.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrednost datuma od koje se pribavlja mesec.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1564
2001
|
}
|
|
1565
2002
|
},
|
|
1566
2003
|
"parametersInfo": {
|
|
@@ -1592,23 +2029,227 @@
|
|
|
1592
2029
|
"max": 0
|
|
1593
2030
|
}
|
|
1594
2031
|
},
|
|
2032
|
+
[
|
|
2033
|
+
{
|
|
2034
|
+
"type": "function",
|
|
2035
|
+
"name": "second",
|
|
2036
|
+
"bundle": "core",
|
|
2037
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second1",
|
|
2038
|
+
"description": "Returns the second of the time in the date.",
|
|
2039
|
+
"examples": "\n##### Primer\n\nGets the second of the current time\n\n```arcade\nSecond(Now())\n```\n\n",
|
|
2040
|
+
"completion": {
|
|
2041
|
+
"label": "Second",
|
|
2042
|
+
"detail": "Second(dateValue) -> Number",
|
|
2043
|
+
"insertText": "Second(${1:dateValue_})$0",
|
|
2044
|
+
"insertTextMode": 2,
|
|
2045
|
+
"insertTextFormat": 2,
|
|
2046
|
+
"kind": 3,
|
|
2047
|
+
"documentation": {
|
|
2048
|
+
"kind": "markdown",
|
|
2049
|
+
"value": "Returns the second of the time in the date.\n\n**Parametar**\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**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
2050
|
+
}
|
|
2051
|
+
},
|
|
2052
|
+
"parametersInfo": {
|
|
2053
|
+
"min": 1,
|
|
2054
|
+
"max": 1
|
|
2055
|
+
}
|
|
2056
|
+
},
|
|
2057
|
+
{
|
|
2058
|
+
"type": "function",
|
|
2059
|
+
"name": "second",
|
|
2060
|
+
"bundle": "core",
|
|
2061
|
+
"sinceVersion": "1.24",
|
|
2062
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second2",
|
|
2063
|
+
"description": "Returns the second of the given time.",
|
|
2064
|
+
"examples": "\n##### Primer\n\nGets the second of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 23\n```\n\n",
|
|
2065
|
+
"completion": {
|
|
2066
|
+
"label": "Second",
|
|
2067
|
+
"detail": "Second(timeValue) -> Number",
|
|
2068
|
+
"insertText": "Second(${1:timeValue_})$0",
|
|
2069
|
+
"insertTextMode": 2,
|
|
2070
|
+
"insertTextFormat": 2,
|
|
2071
|
+
"kind": 3,
|
|
2072
|
+
"documentation": {
|
|
2073
|
+
"kind": "markdown",
|
|
2074
|
+
"value": "**[Od verzije 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the second of the given time.\n\n**Parametar**\n\n- **timeValue**: Time - A Time value from which to get the second.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
2075
|
+
}
|
|
2076
|
+
},
|
|
2077
|
+
"parametersInfo": {
|
|
2078
|
+
"min": 1,
|
|
2079
|
+
"max": 1
|
|
2080
|
+
}
|
|
2081
|
+
}
|
|
2082
|
+
],
|
|
2083
|
+
[
|
|
2084
|
+
{
|
|
2085
|
+
"type": "function",
|
|
2086
|
+
"name": "time",
|
|
2087
|
+
"bundle": "core",
|
|
2088
|
+
"sinceVersion": "1.24",
|
|
2089
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time1",
|
|
2090
|
+
"description": "Creates a Time value representing the current time in the time zone of the profile's execution context.",
|
|
2091
|
+
"examples": "\n##### Primer\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",
|
|
2092
|
+
"completion": {
|
|
2093
|
+
"label": "Time",
|
|
2094
|
+
"detail": "Time() -> Time",
|
|
2095
|
+
"insertText": "Time($0)",
|
|
2096
|
+
"insertTextMode": 2,
|
|
2097
|
+
"insertTextFormat": 2,
|
|
2098
|
+
"kind": 3,
|
|
2099
|
+
"documentation": {
|
|
2100
|
+
"kind": "markdown",
|
|
2101
|
+
"value": "**[Od verzije 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**Povratna vrednost**: Time"
|
|
2102
|
+
}
|
|
2103
|
+
},
|
|
2104
|
+
"parametersInfo": {
|
|
2105
|
+
"min": 0,
|
|
2106
|
+
"max": 0
|
|
2107
|
+
}
|
|
2108
|
+
},
|
|
2109
|
+
{
|
|
2110
|
+
"type": "function",
|
|
2111
|
+
"name": "time",
|
|
2112
|
+
"bundle": "core",
|
|
2113
|
+
"sinceVersion": "1.24",
|
|
2114
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time2",
|
|
2115
|
+
"description": "Creates a Time value from a given date.",
|
|
2116
|
+
"examples": "\n##### Primer\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",
|
|
2117
|
+
"completion": {
|
|
2118
|
+
"label": "Time",
|
|
2119
|
+
"detail": "Time(dateValue) -> Time",
|
|
2120
|
+
"insertText": "Time(${1:dateValue_})$0",
|
|
2121
|
+
"insertTextMode": 2,
|
|
2122
|
+
"insertTextFormat": 2,
|
|
2123
|
+
"kind": 3,
|
|
2124
|
+
"documentation": {
|
|
2125
|
+
"kind": "markdown",
|
|
2126
|
+
"value": "**[Od verzije 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a given date.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to get the time.\n\n**Povratna vrednost**: Time"
|
|
2127
|
+
}
|
|
2128
|
+
},
|
|
2129
|
+
"parametersInfo": {
|
|
2130
|
+
"min": 1,
|
|
2131
|
+
"max": 1
|
|
2132
|
+
}
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
"type": "function",
|
|
2136
|
+
"name": "time",
|
|
2137
|
+
"bundle": "core",
|
|
2138
|
+
"sinceVersion": "1.24",
|
|
2139
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time3",
|
|
2140
|
+
"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`.",
|
|
2141
|
+
"examples": "\n##### Primeri\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",
|
|
2142
|
+
"completion": {
|
|
2143
|
+
"label": "Time",
|
|
2144
|
+
"detail": "Time(numValue) -> Time",
|
|
2145
|
+
"insertText": "Time(${1:numValue_})$0",
|
|
2146
|
+
"insertTextMode": 2,
|
|
2147
|
+
"insertTextFormat": 2,
|
|
2148
|
+
"kind": 3,
|
|
2149
|
+
"documentation": {
|
|
2150
|
+
"kind": "markdown",
|
|
2151
|
+
"value": "**[Od verzije 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**Parametar**\n\n- **numValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since midnight.\n\n**Povratna vrednost**: Time"
|
|
2152
|
+
}
|
|
2153
|
+
},
|
|
2154
|
+
"parametersInfo": {
|
|
2155
|
+
"min": 1,
|
|
2156
|
+
"max": 1
|
|
2157
|
+
}
|
|
2158
|
+
},
|
|
2159
|
+
{
|
|
2160
|
+
"type": "function",
|
|
2161
|
+
"name": "time",
|
|
2162
|
+
"bundle": "core",
|
|
2163
|
+
"sinceVersion": "1.24",
|
|
2164
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time4",
|
|
2165
|
+
"description": "Creates a Time value from inputs representing hours, minutes, seconds, and milliseconds.",
|
|
2166
|
+
"examples": "\n##### Primer\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",
|
|
2167
|
+
"completion": {
|
|
2168
|
+
"label": "Time",
|
|
2169
|
+
"detail": "Time(hours, minutes, seconds?, milliseconds?) -> Time",
|
|
2170
|
+
"insertText": "Time(${1:hours_}, ${2:minutes_})$0",
|
|
2171
|
+
"insertTextMode": 2,
|
|
2172
|
+
"insertTextFormat": 2,
|
|
2173
|
+
"kind": 3,
|
|
2174
|
+
"documentation": {
|
|
2175
|
+
"kind": "markdown",
|
|
2176
|
+
"value": "**[Od verzije 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**Parametri**\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**Povratna vrednost**: Time"
|
|
2177
|
+
}
|
|
2178
|
+
},
|
|
2179
|
+
"parametersInfo": {
|
|
2180
|
+
"min": 2,
|
|
2181
|
+
"max": 4
|
|
2182
|
+
}
|
|
2183
|
+
},
|
|
2184
|
+
{
|
|
2185
|
+
"type": "function",
|
|
2186
|
+
"name": "time",
|
|
2187
|
+
"bundle": "core",
|
|
2188
|
+
"sinceVersion": "1.24",
|
|
2189
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time5",
|
|
2190
|
+
"description": "Creates a Time value from a text input representing time, with an optional input indicating the text's format.",
|
|
2191
|
+
"examples": "\n##### Primeri\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",
|
|
2192
|
+
"completion": {
|
|
2193
|
+
"label": "Time",
|
|
2194
|
+
"detail": "Time(timeValue, format?) -> Time",
|
|
2195
|
+
"insertText": "Time(${1:timeValue_})$0",
|
|
2196
|
+
"insertTextMode": 2,
|
|
2197
|
+
"insertTextFormat": 2,
|
|
2198
|
+
"kind": 3,
|
|
2199
|
+
"documentation": {
|
|
2200
|
+
"kind": "markdown",
|
|
2201
|
+
"value": "**[Od verzije 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**Parametri**\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**Povratna vrednost**: Time"
|
|
2202
|
+
}
|
|
2203
|
+
},
|
|
2204
|
+
"parametersInfo": {
|
|
2205
|
+
"min": 1,
|
|
2206
|
+
"max": 2
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
],
|
|
2210
|
+
{
|
|
2211
|
+
"type": "function",
|
|
2212
|
+
"name": "timestamp",
|
|
2213
|
+
"bundle": "core",
|
|
2214
|
+
"sinceVersion": "1.1",
|
|
2215
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
|
|
2216
|
+
"description": "Kreira vrednost datuma koja predstavlja trenutni datum i vreme u UTC.",
|
|
2217
|
+
"examples": "\n##### Primer\n\nKreira datum u UTC vremenu\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
|
|
2218
|
+
"completion": {
|
|
2219
|
+
"label": "Timestamp",
|
|
2220
|
+
"detail": "Timestamp() -> Date",
|
|
2221
|
+
"insertText": "Timestamp($0)",
|
|
2222
|
+
"insertTextMode": 2,
|
|
2223
|
+
"insertTextFormat": 2,
|
|
2224
|
+
"kind": 3,
|
|
2225
|
+
"documentation": {
|
|
2226
|
+
"kind": "markdown",
|
|
2227
|
+
"value": "**[Od verzije 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nKreira vrednost datuma koja predstavlja trenutni datum i vreme u UTC.\n\n**Povratna vrednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
2228
|
+
}
|
|
2229
|
+
},
|
|
2230
|
+
"parametersInfo": {
|
|
2231
|
+
"min": 0,
|
|
2232
|
+
"max": 0
|
|
2233
|
+
}
|
|
2234
|
+
},
|
|
1595
2235
|
{
|
|
1596
2236
|
"type": "function",
|
|
1597
|
-
"name": "
|
|
2237
|
+
"name": "timezone",
|
|
1598
2238
|
"bundle": "core",
|
|
1599
|
-
"
|
|
1600
|
-
"
|
|
1601
|
-
"
|
|
2239
|
+
"sinceVersion": "1.24",
|
|
2240
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone",
|
|
2241
|
+
"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",
|
|
2242
|
+
"examples": "\n##### Primer\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",
|
|
1602
2243
|
"completion": {
|
|
1603
|
-
"label": "
|
|
1604
|
-
"detail": "
|
|
1605
|
-
"insertText": "
|
|
2244
|
+
"label": "TimeZone",
|
|
2245
|
+
"detail": "TimeZone(dateValue) -> Text",
|
|
2246
|
+
"insertText": "TimeZone(${1:dateValue_})$0",
|
|
1606
2247
|
"insertTextMode": 2,
|
|
1607
2248
|
"insertTextFormat": 2,
|
|
1608
2249
|
"kind": 3,
|
|
1609
2250
|
"documentation": {
|
|
1610
2251
|
"kind": "markdown",
|
|
1611
|
-
"value": "
|
|
2252
|
+
"value": "**[Od verzije 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**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone.\n\n**Povratna vrednost**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
1612
2253
|
}
|
|
1613
2254
|
},
|
|
1614
2255
|
"parametersInfo": {
|
|
@@ -1618,27 +2259,27 @@
|
|
|
1618
2259
|
},
|
|
1619
2260
|
{
|
|
1620
2261
|
"type": "function",
|
|
1621
|
-
"name": "
|
|
2262
|
+
"name": "timezoneoffset",
|
|
1622
2263
|
"bundle": "core",
|
|
1623
|
-
"sinceVersion": "1.
|
|
1624
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#
|
|
1625
|
-
"description": "
|
|
1626
|
-
"examples": "\n##### Primer\n\
|
|
2264
|
+
"sinceVersion": "1.24",
|
|
2265
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezoneoffset",
|
|
2266
|
+
"description": "Returns the time zone offset in minutes from UTC for the given Date.",
|
|
2267
|
+
"examples": "\n##### Primer\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",
|
|
1627
2268
|
"completion": {
|
|
1628
|
-
"label": "
|
|
1629
|
-
"detail": "
|
|
1630
|
-
"insertText": "
|
|
2269
|
+
"label": "TimeZoneOffset",
|
|
2270
|
+
"detail": "TimeZoneOffset(dateValue) -> Number",
|
|
2271
|
+
"insertText": "TimeZoneOffset(${1:dateValue_})$0",
|
|
1631
2272
|
"insertTextMode": 2,
|
|
1632
2273
|
"insertTextFormat": 2,
|
|
1633
2274
|
"kind": 3,
|
|
1634
2275
|
"documentation": {
|
|
1635
2276
|
"kind": "markdown",
|
|
1636
|
-
"value": "**[Od verzije 1.
|
|
2277
|
+
"value": "**[Od verzije 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**Parametar**\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**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1637
2278
|
}
|
|
1638
2279
|
},
|
|
1639
2280
|
"parametersInfo": {
|
|
1640
|
-
"min":
|
|
1641
|
-
"max":
|
|
2281
|
+
"min": 1,
|
|
2282
|
+
"max": 1
|
|
1642
2283
|
}
|
|
1643
2284
|
},
|
|
1644
2285
|
{
|
|
@@ -1722,7 +2363,7 @@
|
|
|
1722
2363
|
"sinceVersion": "1.14",
|
|
1723
2364
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#week",
|
|
1724
2365
|
"description": "Vraća broj nedelje u godinu predmetnog datuma. Vrednosti se kreću od 0 do 53, pri čemu je prva nedelja godine \\\"0\\\", a poslednja je \\\"51\\\", \\\"52\\\" ili \\\"53\\\", u zavisnosti od godine. Prva i poslednja nedelja možda ne budu duge čitavih sedam dana.",
|
|
1725
|
-
"examples": "\n##### Primeri\n\nKoristite podrazumevani početak nedelje (nedelju)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nPodesite početak nedelje na četvrtak\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nPodesite početak nedelje na petak\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",
|
|
2366
|
+
"examples": "\n##### Primeri\n\nKoristite podrazumevani početak nedelje (nedelju)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nPodesite početak nedelje na četvrtak\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nPodesite početak nedelje na petak\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",
|
|
1726
2367
|
"completion": {
|
|
1727
2368
|
"label": "Week",
|
|
1728
2369
|
"detail": "Week(dateValue, startDay?) -> Number",
|
|
@@ -1732,7 +2373,7 @@
|
|
|
1732
2373
|
"kind": 3,
|
|
1733
2374
|
"documentation": {
|
|
1734
2375
|
"kind": "markdown",
|
|
1735
|
-
"value": "**[Od verzije 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća broj nedelje u godinu predmetnog datuma. Vrednosti se kreću od 0 do 53, pri čemu je prva nedelja godine \\\"0\\\", a poslednja je \\\"51\\\", \\\"52\\\" ili \\\"53\\\", u zavisnosti od godine. Prva i poslednja nedelja možda ne budu duge čitavih sedam dana.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrednost datuma od koje se pribavlja sedmica.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Broj koji predstavlja prvi dan u nedelji. Nedelja = 0, ponedeljak = 1; utorak = 2; sreda = 3; četvrtak = 4; petak = 5; subota = 6. Podrazumevana vrednost je \\\"0\\\" (nedelja).\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
2376
|
+
"value": "**[Od verzije 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća broj nedelje u godinu predmetnog datuma. Vrednosti se kreću od 0 do 53, pri čemu je prva nedelja godine \\\"0\\\", a poslednja je \\\"51\\\", \\\"52\\\" ili \\\"53\\\", u zavisnosti od godine. Prva i poslednja nedelja možda ne budu duge čitavih sedam dana.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrednost datuma od koje se pribavlja sedmica.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Broj koji predstavlja prvi dan u nedelji. Nedelja = 0, ponedeljak = 1; utorak = 2; sreda = 3; četvrtak = 4; petak = 5; subota = 6. Podrazumevana vrednost je \\\"0\\\" (nedelja).\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1736
2377
|
}
|
|
1737
2378
|
},
|
|
1738
2379
|
"parametersInfo": {
|
|
@@ -1746,7 +2387,7 @@
|
|
|
1746
2387
|
"bundle": "core",
|
|
1747
2388
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#weekday",
|
|
1748
2389
|
"description": "Vraća dan u sedmici datog datuma. Vrednosti se kreću od 0-6 gde je nedelja `0`, a subota `6`.",
|
|
1749
|
-
"examples": "\n#####
|
|
2390
|
+
"examples": "\n##### Primeri\n\nVraća dan u sedmici datog datuma. Povraćaj `3`, za sredu.\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",
|
|
1750
2391
|
"completion": {
|
|
1751
2392
|
"label": "Weekday",
|
|
1752
2393
|
"detail": "Weekday(dateValue) -> Number",
|
|
@@ -1756,7 +2397,7 @@
|
|
|
1756
2397
|
"kind": 3,
|
|
1757
2398
|
"documentation": {
|
|
1758
2399
|
"kind": "markdown",
|
|
1759
|
-
"value": "Vraća dan u sedmici datog datuma. Vrednosti se kreću od 0-6 gde je nedelja `0`, a subota `6`.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrednost datuma od koje se vraća dan u sedmici.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
2400
|
+
"value": "Vraća dan u sedmici datog datuma. Vrednosti se kreću od 0-6 gde je nedelja `0`, a subota `6`.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrednost datuma od koje se vraća dan u sedmici.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1760
2401
|
}
|
|
1761
2402
|
},
|
|
1762
2403
|
"parametersInfo": {
|
|
@@ -1770,7 +2411,7 @@
|
|
|
1770
2411
|
"bundle": "core",
|
|
1771
2412
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#year",
|
|
1772
2413
|
"description": "Vraća godinu datog datuma.",
|
|
1773
|
-
"examples": "\n#####
|
|
2414
|
+
"examples": "\n##### Primeri\n\nPribavlja godinu trenutnog datuma\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",
|
|
1774
2415
|
"completion": {
|
|
1775
2416
|
"label": "Year",
|
|
1776
2417
|
"detail": "Year(dateValue) -> Number",
|
|
@@ -1780,7 +2421,7 @@
|
|
|
1780
2421
|
"kind": 3,
|
|
1781
2422
|
"documentation": {
|
|
1782
2423
|
"kind": "markdown",
|
|
1783
|
-
"value": "Vraća godinu datog datuma.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrednost datuma od koje se pribavlja godina.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
2424
|
+
"value": "Vraća godinu datog datuma.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrednost datuma od koje se pribavlja godina.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1784
2425
|
}
|
|
1785
2426
|
},
|
|
1786
2427
|
"parametersInfo": {
|
|
@@ -5242,6 +5883,31 @@
|
|
|
5242
5883
|
"max": 2
|
|
5243
5884
|
}
|
|
5244
5885
|
},
|
|
5886
|
+
{
|
|
5887
|
+
"type": "function",
|
|
5888
|
+
"name": "equals",
|
|
5889
|
+
"bundle": "core",
|
|
5890
|
+
"sinceVersion": "1.24",
|
|
5891
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/logical_functions/#equals",
|
|
5892
|
+
"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.",
|
|
5893
|
+
"examples": "\n##### Primer\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",
|
|
5894
|
+
"completion": {
|
|
5895
|
+
"label": "Equals",
|
|
5896
|
+
"detail": "Equals(value1, value2) -> Boolean",
|
|
5897
|
+
"insertText": "Equals(${1:value1_}, ${2:value2_})$0",
|
|
5898
|
+
"insertTextMode": 2,
|
|
5899
|
+
"insertTextFormat": 2,
|
|
5900
|
+
"kind": 3,
|
|
5901
|
+
"documentation": {
|
|
5902
|
+
"kind": "markdown",
|
|
5903
|
+
"value": "**[Od verzije 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**Parametri**\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**Povratna vrednost**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
5904
|
+
}
|
|
5905
|
+
},
|
|
5906
|
+
"parametersInfo": {
|
|
5907
|
+
"min": 2,
|
|
5908
|
+
"max": 2
|
|
5909
|
+
}
|
|
5910
|
+
},
|
|
5245
5911
|
{
|
|
5246
5912
|
"type": "function",
|
|
5247
5913
|
"name": "iif",
|
|
@@ -5677,7 +6343,7 @@
|
|
|
5677
6343
|
"kind": 3,
|
|
5678
6344
|
"documentation": {
|
|
5679
6345
|
"kind": "markdown",
|
|
5680
|
-
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nGeneriše vrednost heš koda za datu promenljivu.\n\n**Parametar**\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) - Promenljiva koju treba heširati.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6346
|
+
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nGeneriše vrednost heš koda za datu promenljivu.\n\n**Parametar**\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 - Promenljiva koju treba heširati.\n\n**Povratna vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5681
6347
|
}
|
|
5682
6348
|
},
|
|
5683
6349
|
"parametersInfo": {
|
|
@@ -6531,7 +7197,7 @@
|
|
|
6531
7197
|
"bundle": "core",
|
|
6532
7198
|
"link": "https://developers.arcgis.com/arcade/function-reference/text_functions/#text",
|
|
6533
7199
|
"description": "Konvertuje svoj argument u tekstualnu vrednost i opciono ga formatira. Vraća `null` ako ne uspe.",
|
|
6534
|
-
"examples": "\n##### Primeri\n\nPopuni broj levo od decimale\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nOgraniči broj levo od decimale\n\n```arcade\nText(123, '00') // '23'\n```\n\nGrupiši broj po hiljadama\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nZaokruži broj na dva decimalna mesta\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nFormatiraj broj u vidu valute\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nZaokruži broj na dva decimalna mesta\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nSačuvaj značajne cifre i grupiši po hiljadama\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nFormatirajte broj i formatirajte pozitivno/negativno – ako postoji negativni podobrazac, on služi samo da navede negativni prefiks i sufiks\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nPomnoži sa 100 i formatiraj kao procenat\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nFormatira datum i vreme u trenutku. Na primer 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nDatum uskladišten u polju `datetime` već predstavlja lokalno vreme, ali Arcade pretpostavlja da je u UTC vremenu. Podešava lokalno vreme na UTC vreme da bi izbegao primenu pomaka vremenskih zona dvaput.\n\n```arcade\nText(
|
|
7200
|
+
"examples": "\n##### Primeri\n\nPopuni broj levo od decimale\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nOgraniči broj levo od decimale\n\n```arcade\nText(123, '00') // '23'\n```\n\nGrupiši broj po hiljadama\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nZaokruži broj na dva decimalna mesta\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nFormatiraj broj u vidu valute\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nZaokruži broj na dva decimalna mesta\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nSačuvaj značajne cifre i grupiši po hiljadama\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nFormatirajte broj i formatirajte pozitivno/negativno – ako postoji negativni podobrazac, on služi samo da navede negativni prefiks i sufiks\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nPomnoži sa 100 i formatiraj kao procenat\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nFormatira datum i vreme u trenutku. Na primer 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nDatum uskladišten u polju `datetime` već predstavlja lokalno vreme, ali Arcade pretpostavlja da je u UTC vremenu. Podešava lokalno vreme na UTC vreme da bi izbegao primenu pomaka vremenskih zona dvaput.\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",
|
|
6535
7201
|
"completion": {
|
|
6536
7202
|
"label": "Text",
|
|
6537
7203
|
"detail": "Text(value, format?) -> Text",
|