@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
|
@@ -535,29 +535,54 @@
|
|
|
535
535
|
"id": "date_functions",
|
|
536
536
|
"title": "Fonctions de date",
|
|
537
537
|
"items": [
|
|
538
|
+
{
|
|
539
|
+
"type": "function",
|
|
540
|
+
"name": "changetimezone",
|
|
541
|
+
"bundle": "core",
|
|
542
|
+
"sinceVersion": "1.24",
|
|
543
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone",
|
|
544
|
+
"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`.",
|
|
545
|
+
"examples": "\n##### Exemples\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",
|
|
546
|
+
"completion": {
|
|
547
|
+
"label": "ChangeTimeZone",
|
|
548
|
+
"detail": "ChangeTimeZone(dateValue, newTimeZone) -> Date",
|
|
549
|
+
"insertText": "ChangeTimeZone(${1:dateValue_}, ${2:newTimeZone_})$0",
|
|
550
|
+
"insertTextMode": 2,
|
|
551
|
+
"insertTextFormat": 2,
|
|
552
|
+
"kind": 3,
|
|
553
|
+
"documentation": {
|
|
554
|
+
"kind": "markdown",
|
|
555
|
+
"value": "**[Depuis la version 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**Paramètres**\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**Valeur de retour**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
"parametersInfo": {
|
|
559
|
+
"min": 2,
|
|
560
|
+
"max": 2
|
|
561
|
+
}
|
|
562
|
+
},
|
|
538
563
|
[
|
|
539
564
|
{
|
|
540
565
|
"type": "function",
|
|
541
566
|
"name": "date",
|
|
542
567
|
"bundle": "core",
|
|
543
568
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date1",
|
|
544
|
-
"description": "
|
|
545
|
-
"examples": "\n##### Exemples\n\
|
|
569
|
+
"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.",
|
|
570
|
+
"examples": "\n##### Exemples\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",
|
|
546
571
|
"completion": {
|
|
547
572
|
"label": "Date",
|
|
548
|
-
"detail": "Date(year, month, day, hour?, minute?, second?, millisecond?) -> Date",
|
|
573
|
+
"detail": "Date(year, month, day, hour?, minute?, second?, millisecond?, timeZone?) -> Date",
|
|
549
574
|
"insertText": "Date(${1:year_}, ${2:month_}, ${3:day_})$0",
|
|
550
575
|
"insertTextMode": 2,
|
|
551
576
|
"insertTextFormat": 2,
|
|
552
577
|
"kind": 3,
|
|
553
578
|
"documentation": {
|
|
554
579
|
"kind": "markdown",
|
|
555
|
-
"value": "
|
|
580
|
+
"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**Paramètres**\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**Valeur de retour**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
556
581
|
}
|
|
557
582
|
},
|
|
558
583
|
"parametersInfo": {
|
|
559
584
|
"min": 3,
|
|
560
|
-
"max":
|
|
585
|
+
"max": 8
|
|
561
586
|
}
|
|
562
587
|
},
|
|
563
588
|
{
|
|
@@ -565,8 +590,8 @@
|
|
|
565
590
|
"name": "date",
|
|
566
591
|
"bundle": "core",
|
|
567
592
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date2",
|
|
568
|
-
"description": "
|
|
569
|
-
"examples": "\n#####
|
|
593
|
+
"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.",
|
|
594
|
+
"examples": "\n##### Exemples\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",
|
|
570
595
|
"completion": {
|
|
571
596
|
"label": "Date",
|
|
572
597
|
"detail": "Date(epoch?) -> Date",
|
|
@@ -576,7 +601,7 @@
|
|
|
576
601
|
"kind": 3,
|
|
577
602
|
"documentation": {
|
|
578
603
|
"kind": "markdown",
|
|
579
|
-
"value": "
|
|
604
|
+
"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**Paramètre**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Valeur de retour**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
580
605
|
}
|
|
581
606
|
},
|
|
582
607
|
"parametersInfo": {
|
|
@@ -589,8 +614,8 @@
|
|
|
589
614
|
"name": "date",
|
|
590
615
|
"bundle": "core",
|
|
591
616
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date3",
|
|
592
|
-
"description": "
|
|
593
|
-
"examples": "\n#####
|
|
617
|
+
"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.",
|
|
618
|
+
"examples": "\n##### Exemples\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",
|
|
594
619
|
"completion": {
|
|
595
620
|
"label": "Date",
|
|
596
621
|
"detail": "Date(timestamp?) -> Date",
|
|
@@ -600,70 +625,376 @@
|
|
|
600
625
|
"kind": 3,
|
|
601
626
|
"documentation": {
|
|
602
627
|
"kind": "markdown",
|
|
603
|
-
"value": "
|
|
628
|
+
"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**Paramètre**\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**Valeur de retour**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
604
629
|
}
|
|
605
630
|
},
|
|
606
631
|
"parametersInfo": {
|
|
607
632
|
"min": 0,
|
|
608
633
|
"max": 1
|
|
609
634
|
}
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"type": "function",
|
|
638
|
+
"name": "date",
|
|
639
|
+
"bundle": "core",
|
|
640
|
+
"sinceVersion": "1.24",
|
|
641
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date4",
|
|
642
|
+
"description": "Creates a Date from a DateOnly value, with an optional Time and time zone value.",
|
|
643
|
+
"examples": "\n##### Exemple\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",
|
|
644
|
+
"completion": {
|
|
645
|
+
"label": "Date",
|
|
646
|
+
"detail": "Date(dateOnlyValue, timeValue?, timeZone?) -> Date",
|
|
647
|
+
"insertText": "Date(${1:dateOnlyValue_})$0",
|
|
648
|
+
"insertTextMode": 2,
|
|
649
|
+
"insertTextFormat": 2,
|
|
650
|
+
"kind": 3,
|
|
651
|
+
"documentation": {
|
|
652
|
+
"kind": "markdown",
|
|
653
|
+
"value": "**[Depuis la version 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**Paramètres**\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**Valeur de retour**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
"parametersInfo": {
|
|
657
|
+
"min": 1,
|
|
658
|
+
"max": 3
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
"type": "function",
|
|
663
|
+
"name": "date",
|
|
664
|
+
"bundle": "core",
|
|
665
|
+
"sinceVersion": "1.24",
|
|
666
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date5",
|
|
667
|
+
"description": "Creates a copy of the given Date.",
|
|
668
|
+
"examples": "\n##### Exemple\n\nCreates a copy of the current Date value\n\n```arcade\nvar copiedDate = Date(Now())\n```\n\n",
|
|
669
|
+
"completion": {
|
|
670
|
+
"label": "Date",
|
|
671
|
+
"detail": "Date(dateValue) -> Date",
|
|
672
|
+
"insertText": "Date(${1:dateValue_})$0",
|
|
673
|
+
"insertTextMode": 2,
|
|
674
|
+
"insertTextFormat": 2,
|
|
675
|
+
"kind": 3,
|
|
676
|
+
"documentation": {
|
|
677
|
+
"kind": "markdown",
|
|
678
|
+
"value": "**[Depuis la version 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of the given Date.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date to copy.\n\n**Valeur de retour**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
"parametersInfo": {
|
|
682
|
+
"min": 1,
|
|
683
|
+
"max": 1
|
|
684
|
+
}
|
|
610
685
|
}
|
|
611
686
|
],
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
"
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
"
|
|
628
|
-
|
|
687
|
+
[
|
|
688
|
+
{
|
|
689
|
+
"type": "function",
|
|
690
|
+
"name": "dateadd",
|
|
691
|
+
"bundle": "core",
|
|
692
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd1",
|
|
693
|
+
"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.",
|
|
694
|
+
"examples": "\n##### Exemple\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",
|
|
695
|
+
"completion": {
|
|
696
|
+
"label": "DateAdd",
|
|
697
|
+
"detail": "DateAdd(dateValue, addValue, units?) -> Date",
|
|
698
|
+
"insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
|
|
699
|
+
"insertTextMode": 2,
|
|
700
|
+
"insertTextFormat": 2,
|
|
701
|
+
"kind": 3,
|
|
702
|
+
"documentation": {
|
|
703
|
+
"kind": "markdown",
|
|
704
|
+
"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**Paramètres**\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**Valeur de retour**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
"parametersInfo": {
|
|
708
|
+
"min": 2,
|
|
709
|
+
"max": 3
|
|
629
710
|
}
|
|
630
711
|
},
|
|
631
|
-
|
|
632
|
-
"
|
|
633
|
-
"
|
|
712
|
+
{
|
|
713
|
+
"type": "function",
|
|
714
|
+
"name": "dateadd",
|
|
715
|
+
"bundle": "core",
|
|
716
|
+
"sinceVersion": "1.24",
|
|
717
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd2",
|
|
718
|
+
"description": "Adds a specified amount of time in the given units to a DateOnly value and returns a new DateOnly value.",
|
|
719
|
+
"examples": "\n##### Exemples\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",
|
|
720
|
+
"completion": {
|
|
721
|
+
"label": "DateAdd",
|
|
722
|
+
"detail": "DateAdd(dateOnlyValue, addValue, units?) -> DateOnly",
|
|
723
|
+
"insertText": "DateAdd(${1:dateOnlyValue_}, ${2:addValue_})$0",
|
|
724
|
+
"insertTextMode": 2,
|
|
725
|
+
"insertTextFormat": 2,
|
|
726
|
+
"kind": 3,
|
|
727
|
+
"documentation": {
|
|
728
|
+
"kind": "markdown",
|
|
729
|
+
"value": "**[Depuis la version 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**Paramètres**\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**Valeur de retour**: DateOnly"
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
"parametersInfo": {
|
|
733
|
+
"min": 2,
|
|
734
|
+
"max": 3
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
"type": "function",
|
|
739
|
+
"name": "dateadd",
|
|
740
|
+
"bundle": "core",
|
|
741
|
+
"sinceVersion": "1.24",
|
|
742
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd3",
|
|
743
|
+
"description": "Adds a specified amount of time in the given units to a Time value and returns a new Time value.",
|
|
744
|
+
"examples": "\n##### Exemples\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",
|
|
745
|
+
"completion": {
|
|
746
|
+
"label": "DateAdd",
|
|
747
|
+
"detail": "DateAdd(timeValue, addValue, units?) -> Time",
|
|
748
|
+
"insertText": "DateAdd(${1:timeValue_}, ${2:addValue_})$0",
|
|
749
|
+
"insertTextMode": 2,
|
|
750
|
+
"insertTextFormat": 2,
|
|
751
|
+
"kind": 3,
|
|
752
|
+
"documentation": {
|
|
753
|
+
"kind": "markdown",
|
|
754
|
+
"value": "**[Depuis la version 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**Paramètres**\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**Valeur de retour**: Time"
|
|
755
|
+
}
|
|
756
|
+
},
|
|
757
|
+
"parametersInfo": {
|
|
758
|
+
"min": 2,
|
|
759
|
+
"max": 3
|
|
760
|
+
}
|
|
634
761
|
}
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
"
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
"
|
|
652
|
-
|
|
762
|
+
],
|
|
763
|
+
[
|
|
764
|
+
{
|
|
765
|
+
"type": "function",
|
|
766
|
+
"name": "datediff",
|
|
767
|
+
"bundle": "core",
|
|
768
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
|
|
769
|
+
"description": "Subtracts two Dates, and returns the difference in the specified units.",
|
|
770
|
+
"examples": "\n##### Exemples\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",
|
|
771
|
+
"completion": {
|
|
772
|
+
"label": "DateDiff",
|
|
773
|
+
"detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
|
|
774
|
+
"insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
|
|
775
|
+
"insertTextMode": 2,
|
|
776
|
+
"insertTextFormat": 2,
|
|
777
|
+
"kind": 3,
|
|
778
|
+
"documentation": {
|
|
779
|
+
"kind": "markdown",
|
|
780
|
+
"value": "Subtracts two Dates, and returns the difference in the specified units.\n\n**Paramètres**\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**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
"parametersInfo": {
|
|
784
|
+
"min": 2,
|
|
785
|
+
"max": 4
|
|
653
786
|
}
|
|
654
787
|
},
|
|
655
|
-
|
|
656
|
-
"
|
|
657
|
-
"
|
|
788
|
+
{
|
|
789
|
+
"type": "function",
|
|
790
|
+
"name": "datediff",
|
|
791
|
+
"bundle": "core",
|
|
792
|
+
"sinceVersion": "1.24",
|
|
793
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff2",
|
|
794
|
+
"description": "Subtracts two DateOnly values, and returns the difference in the specified units.",
|
|
795
|
+
"examples": "\n##### Exemple\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",
|
|
796
|
+
"completion": {
|
|
797
|
+
"label": "DateDiff",
|
|
798
|
+
"detail": "DateDiff(dateOnly1, dateOnly2, units?) -> Number",
|
|
799
|
+
"insertText": "DateDiff(${1:dateOnly1_}, ${2:dateOnly2_})$0",
|
|
800
|
+
"insertTextMode": 2,
|
|
801
|
+
"insertTextFormat": 2,
|
|
802
|
+
"kind": 3,
|
|
803
|
+
"documentation": {
|
|
804
|
+
"kind": "markdown",
|
|
805
|
+
"value": "**[Depuis la version 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**Paramètres**\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**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
"parametersInfo": {
|
|
809
|
+
"min": 2,
|
|
810
|
+
"max": 3
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"type": "function",
|
|
815
|
+
"name": "datediff",
|
|
816
|
+
"bundle": "core",
|
|
817
|
+
"sinceVersion": "1.24",
|
|
818
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff3",
|
|
819
|
+
"description": "Subtracts two Time values, and returns the difference in the specified units.",
|
|
820
|
+
"examples": "\n##### Exemple\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",
|
|
821
|
+
"completion": {
|
|
822
|
+
"label": "DateDiff",
|
|
823
|
+
"detail": "DateDiff(time1, time2, units?) -> Number",
|
|
824
|
+
"insertText": "DateDiff(${1:time1_}, ${2:time2_})$0",
|
|
825
|
+
"insertTextMode": 2,
|
|
826
|
+
"insertTextFormat": 2,
|
|
827
|
+
"kind": 3,
|
|
828
|
+
"documentation": {
|
|
829
|
+
"kind": "markdown",
|
|
830
|
+
"value": "**[Depuis la version 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**Paramètres**\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**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
831
|
+
}
|
|
832
|
+
},
|
|
833
|
+
"parametersInfo": {
|
|
834
|
+
"min": 2,
|
|
835
|
+
"max": 3
|
|
836
|
+
}
|
|
658
837
|
}
|
|
659
|
-
|
|
838
|
+
],
|
|
839
|
+
[
|
|
840
|
+
{
|
|
841
|
+
"type": "function",
|
|
842
|
+
"name": "dateonly",
|
|
843
|
+
"bundle": "core",
|
|
844
|
+
"sinceVersion": "1.24",
|
|
845
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly1",
|
|
846
|
+
"description": "Creates a DateOnly value based on the current date in the time zone of the profile's execution context.",
|
|
847
|
+
"examples": "\n##### Exemple\n\nReturns the current DateOnly (no time)\n\n```arcade\nDateOnly()\n// returns the current date, i.e. 2023-09-12\n```\n\n",
|
|
848
|
+
"completion": {
|
|
849
|
+
"label": "DateOnly",
|
|
850
|
+
"detail": "DateOnly() -> DateOnly",
|
|
851
|
+
"insertText": "DateOnly($0)",
|
|
852
|
+
"insertTextMode": 2,
|
|
853
|
+
"insertTextFormat": 2,
|
|
854
|
+
"kind": 3,
|
|
855
|
+
"documentation": {
|
|
856
|
+
"kind": "markdown",
|
|
857
|
+
"value": "**[Depuis la version 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**Valeur de retour**: DateOnly"
|
|
858
|
+
}
|
|
859
|
+
},
|
|
860
|
+
"parametersInfo": {
|
|
861
|
+
"min": 0,
|
|
862
|
+
"max": 0
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"type": "function",
|
|
867
|
+
"name": "dateonly",
|
|
868
|
+
"bundle": "core",
|
|
869
|
+
"sinceVersion": "1.24",
|
|
870
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly2",
|
|
871
|
+
"description": "Creates a DateOnly value from a given date.",
|
|
872
|
+
"examples": "\n##### Exemple\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",
|
|
873
|
+
"completion": {
|
|
874
|
+
"label": "DateOnly",
|
|
875
|
+
"detail": "DateOnly(dateValue) -> DateOnly",
|
|
876
|
+
"insertText": "DateOnly(${1:dateValue_})$0",
|
|
877
|
+
"insertTextMode": 2,
|
|
878
|
+
"insertTextFormat": 2,
|
|
879
|
+
"kind": 3,
|
|
880
|
+
"documentation": {
|
|
881
|
+
"kind": "markdown",
|
|
882
|
+
"value": "**[Depuis la version 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from a given date.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to create the DateOnly value.\n\n**Valeur de retour**: DateOnly"
|
|
883
|
+
}
|
|
884
|
+
},
|
|
885
|
+
"parametersInfo": {
|
|
886
|
+
"min": 1,
|
|
887
|
+
"max": 1
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
"type": "function",
|
|
892
|
+
"name": "dateonly",
|
|
893
|
+
"bundle": "core",
|
|
894
|
+
"sinceVersion": "1.24",
|
|
895
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly3",
|
|
896
|
+
"description": "Creates a DateOnly date with the given Unix epoch number.",
|
|
897
|
+
"examples": "\n##### Exemple\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",
|
|
898
|
+
"completion": {
|
|
899
|
+
"label": "DateOnly",
|
|
900
|
+
"detail": "DateOnly(epoch) -> DateOnly",
|
|
901
|
+
"insertText": "DateOnly(${1:epoch_})$0",
|
|
902
|
+
"insertTextMode": 2,
|
|
903
|
+
"insertTextFormat": 2,
|
|
904
|
+
"kind": 3,
|
|
905
|
+
"documentation": {
|
|
906
|
+
"kind": "markdown",
|
|
907
|
+
"value": "**[Depuis la version 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly date with the given Unix epoch number.\n\n**Paramètre**\n\n- **epoch**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Valeur de retour**: DateOnly"
|
|
908
|
+
}
|
|
909
|
+
},
|
|
910
|
+
"parametersInfo": {
|
|
911
|
+
"min": 1,
|
|
912
|
+
"max": 1
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"type": "function",
|
|
917
|
+
"name": "dateonly",
|
|
918
|
+
"bundle": "core",
|
|
919
|
+
"sinceVersion": "1.24",
|
|
920
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly4",
|
|
921
|
+
"description": "Creates a DateOnly value from inputs representing the year, month, and day.",
|
|
922
|
+
"examples": "\n##### Exemple\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",
|
|
923
|
+
"completion": {
|
|
924
|
+
"label": "DateOnly",
|
|
925
|
+
"detail": "DateOnly(year, month, day) -> DateOnly",
|
|
926
|
+
"insertText": "DateOnly(${1:year_}, ${2:month_}, ${3:day_})$0",
|
|
927
|
+
"insertTextMode": 2,
|
|
928
|
+
"insertTextFormat": 2,
|
|
929
|
+
"kind": 3,
|
|
930
|
+
"documentation": {
|
|
931
|
+
"kind": "markdown",
|
|
932
|
+
"value": "**[Depuis la version 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**Paramètres**\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**Valeur de retour**: DateOnly"
|
|
933
|
+
}
|
|
934
|
+
},
|
|
935
|
+
"parametersInfo": {
|
|
936
|
+
"min": 3,
|
|
937
|
+
"max": 3
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"type": "function",
|
|
942
|
+
"name": "dateonly",
|
|
943
|
+
"bundle": "core",
|
|
944
|
+
"sinceVersion": "1.24",
|
|
945
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly5",
|
|
946
|
+
"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.",
|
|
947
|
+
"examples": "\n##### Exemples\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",
|
|
948
|
+
"completion": {
|
|
949
|
+
"label": "DateOnly",
|
|
950
|
+
"detail": "DateOnly(dateValue, format?) -> DateOnly",
|
|
951
|
+
"insertText": "DateOnly(${1:dateValue_})$0",
|
|
952
|
+
"insertTextMode": 2,
|
|
953
|
+
"insertTextFormat": 2,
|
|
954
|
+
"kind": 3,
|
|
955
|
+
"documentation": {
|
|
956
|
+
"kind": "markdown",
|
|
957
|
+
"value": "**[Depuis la version 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**Paramètres**\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**Valeur de retour**: DateOnly"
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
"parametersInfo": {
|
|
961
|
+
"min": 1,
|
|
962
|
+
"max": 2
|
|
963
|
+
}
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"type": "function",
|
|
967
|
+
"name": "dateonly",
|
|
968
|
+
"bundle": "core",
|
|
969
|
+
"sinceVersion": "1.24",
|
|
970
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly6",
|
|
971
|
+
"description": "Creates a copy of a DateOnly value.",
|
|
972
|
+
"examples": "\n##### Exemple\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",
|
|
973
|
+
"completion": {
|
|
974
|
+
"label": "DateOnly",
|
|
975
|
+
"detail": "DateOnly(dateOnlyValue) -> DateOnly",
|
|
976
|
+
"insertText": "DateOnly(${1:dateOnlyValue_})$0",
|
|
977
|
+
"insertTextMode": 2,
|
|
978
|
+
"insertTextFormat": 2,
|
|
979
|
+
"kind": 3,
|
|
980
|
+
"documentation": {
|
|
981
|
+
"kind": "markdown",
|
|
982
|
+
"value": "**[Depuis la version 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of a DateOnly value.\n\n**Paramètre**\n\n- **dateOnlyValue**: DateOnly - The DateOnly value to copy.\n\n**Valeur de retour**: DateOnly"
|
|
983
|
+
}
|
|
984
|
+
},
|
|
985
|
+
"parametersInfo": {
|
|
986
|
+
"min": 1,
|
|
987
|
+
"max": 1
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
],
|
|
660
991
|
{
|
|
661
992
|
"type": "function",
|
|
662
993
|
"name": "day",
|
|
663
994
|
"bundle": "core",
|
|
664
995
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
|
|
665
996
|
"description": "Renvoie le jour du mois de la date donnée.",
|
|
666
|
-
"examples": "\n#####
|
|
997
|
+
"examples": "\n##### Exemples\n\nRécupère le jour du mois de la date actuelle\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",
|
|
667
998
|
"completion": {
|
|
668
999
|
"label": "Day",
|
|
669
1000
|
"detail": "Day(dateValue) -> Number",
|
|
@@ -673,7 +1004,7 @@
|
|
|
673
1004
|
"kind": 3,
|
|
674
1005
|
"documentation": {
|
|
675
1006
|
"kind": "markdown",
|
|
676
|
-
"value": "Renvoie le jour du mois de la date donnée.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valeur de date à partir de laquelle le jour du mois est obtenu.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1007
|
+
"value": "Renvoie le jour du mois de la date donnée.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Valeur de date à partir de laquelle le jour du mois est obtenu.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
677
1008
|
}
|
|
678
1009
|
},
|
|
679
1010
|
"parametersInfo": {
|
|
@@ -681,30 +1012,57 @@
|
|
|
681
1012
|
"max": 1
|
|
682
1013
|
}
|
|
683
1014
|
},
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
"
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
"
|
|
700
|
-
|
|
1015
|
+
[
|
|
1016
|
+
{
|
|
1017
|
+
"type": "function",
|
|
1018
|
+
"name": "hour",
|
|
1019
|
+
"bundle": "core",
|
|
1020
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour1",
|
|
1021
|
+
"description": "Returns the hour of the time in the given date (0-23).",
|
|
1022
|
+
"examples": "\n##### Exemple\n\nGets the hour of the current time\n\n```arcade\nHour(Now())\n```\n\n",
|
|
1023
|
+
"completion": {
|
|
1024
|
+
"label": "Hour",
|
|
1025
|
+
"detail": "Hour(dateValue) -> Number",
|
|
1026
|
+
"insertText": "Hour(${1:dateValue_})$0",
|
|
1027
|
+
"insertTextMode": 2,
|
|
1028
|
+
"insertTextFormat": 2,
|
|
1029
|
+
"kind": 3,
|
|
1030
|
+
"documentation": {
|
|
1031
|
+
"kind": "markdown",
|
|
1032
|
+
"value": "Returns the hour of the time in the given date (0-23).\n\n**Paramètre**\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**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1033
|
+
}
|
|
1034
|
+
},
|
|
1035
|
+
"parametersInfo": {
|
|
1036
|
+
"min": 1,
|
|
1037
|
+
"max": 1
|
|
701
1038
|
}
|
|
702
1039
|
},
|
|
703
|
-
|
|
704
|
-
"
|
|
705
|
-
"
|
|
1040
|
+
{
|
|
1041
|
+
"type": "function",
|
|
1042
|
+
"name": "hour",
|
|
1043
|
+
"bundle": "core",
|
|
1044
|
+
"sinceVersion": "1.24",
|
|
1045
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour2",
|
|
1046
|
+
"description": "Returns the hour of the given time (0-23).",
|
|
1047
|
+
"examples": "\n##### Exemple\n\nGets the hour of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 2\n```\n\n",
|
|
1048
|
+
"completion": {
|
|
1049
|
+
"label": "Hour",
|
|
1050
|
+
"detail": "Hour(timeValue) -> Number",
|
|
1051
|
+
"insertText": "Hour(${1:timeValue_})$0",
|
|
1052
|
+
"insertTextMode": 2,
|
|
1053
|
+
"insertTextFormat": 2,
|
|
1054
|
+
"kind": 3,
|
|
1055
|
+
"documentation": {
|
|
1056
|
+
"kind": "markdown",
|
|
1057
|
+
"value": "**[Depuis la version 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the hour of the given time (0-23).\n\n**Paramètre**\n\n- **timeValue**: Time - A Time value from which to get the hour.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
"parametersInfo": {
|
|
1061
|
+
"min": 1,
|
|
1062
|
+
"max": 1
|
|
1063
|
+
}
|
|
706
1064
|
}
|
|
707
|
-
|
|
1065
|
+
],
|
|
708
1066
|
{
|
|
709
1067
|
"type": "function",
|
|
710
1068
|
"name": "isomonth",
|
|
@@ -712,7 +1070,7 @@
|
|
|
712
1070
|
"sinceVersion": "1.12",
|
|
713
1071
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
|
|
714
1072
|
"description": "Renvoie le mois de la date donnée, selon la norme ISO 8601. Plage de valeurs de 1 à 12, où le mois de janvier correspond à `1` et le mois de décembre à `12`.",
|
|
715
|
-
"examples": "\n#####
|
|
1073
|
+
"examples": "\n##### Exemples\n\nRécupère le mois de la date donnée, selon la norme ISO 8601. Renvoie `12` pour le mois de décembre.\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",
|
|
716
1074
|
"completion": {
|
|
717
1075
|
"label": "ISOMonth",
|
|
718
1076
|
"detail": "ISOMonth(dateValue) -> Number",
|
|
@@ -722,7 +1080,7 @@
|
|
|
722
1080
|
"kind": 3,
|
|
723
1081
|
"documentation": {
|
|
724
1082
|
"kind": "markdown",
|
|
725
|
-
"value": "**[Depuis la version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRenvoie le mois de la date donnée, selon la norme ISO 8601. Plage de valeurs de 1 à 12, où le mois de janvier correspond à `1` et le mois de décembre à `12`.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valeur de date à partir de laquelle récupérer le mois.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1083
|
+
"value": "**[Depuis la version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRenvoie le mois de la date donnée, selon la norme ISO 8601. Plage de valeurs de 1 à 12, où le mois de janvier correspond à `1` et le mois de décembre à `12`.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Valeur de date à partir de laquelle récupérer le mois.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
726
1084
|
}
|
|
727
1085
|
},
|
|
728
1086
|
"parametersInfo": {
|
|
@@ -737,7 +1095,7 @@
|
|
|
737
1095
|
"sinceVersion": "1.12",
|
|
738
1096
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
|
|
739
1097
|
"description": "Renvoie la semaine de l’année pour la date donnée, selon le calendrier en semaines ISO 8601. Plage de valeurs de 1 à 53 dans laquelle la première semaine de l’année correspond à `1` et la dernière semaine de l’année correspond à `52` ou `53`, selon l’année.",
|
|
740
|
-
"examples": "\n#####
|
|
1098
|
+
"examples": "\n##### Exemples\n\nRécupère la semaine de la date donnée, selon la norme ISO 8601. Renvoie `1` car cette date figure dans la première semaine de l’année suivante.\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",
|
|
741
1099
|
"completion": {
|
|
742
1100
|
"label": "ISOWeek",
|
|
743
1101
|
"detail": "ISOWeek(dateValue) -> Number",
|
|
@@ -747,7 +1105,7 @@
|
|
|
747
1105
|
"kind": 3,
|
|
748
1106
|
"documentation": {
|
|
749
1107
|
"kind": "markdown",
|
|
750
|
-
"value": "**[Depuis la version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRenvoie la semaine de l’année pour la date donnée, selon le calendrier en semaines ISO 8601. Plage de valeurs de 1 à 53 dans laquelle la première semaine de l’année correspond à `1` et la dernière semaine de l’année correspond à `52` ou `53`, selon l’année.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valeur de date à partir de laquelle récupérer la semaine.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1108
|
+
"value": "**[Depuis la version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRenvoie la semaine de l’année pour la date donnée, selon le calendrier en semaines ISO 8601. Plage de valeurs de 1 à 53 dans laquelle la première semaine de l’année correspond à `1` et la dernière semaine de l’année correspond à `52` ou `53`, selon l’année.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Valeur de date à partir de laquelle récupérer la semaine.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
751
1109
|
}
|
|
752
1110
|
},
|
|
753
1111
|
"parametersInfo": {
|
|
@@ -762,7 +1120,7 @@
|
|
|
762
1120
|
"sinceVersion": "1.12",
|
|
763
1121
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
|
|
764
1122
|
"description": "Renvoie le jour de la semaine de la date donnée, selon la norme ISO 8601. Plage de valeurs de 1 à 7, où le lundi correspond à `1` et le dimanche à `7`.",
|
|
765
|
-
"examples": "\n#####
|
|
1123
|
+
"examples": "\n##### Exemples\n\nRenvoie le jour de la semaine de la date donnée, selon la norme ISO 8601. Renvoie `3` pour le mercredi.\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",
|
|
766
1124
|
"completion": {
|
|
767
1125
|
"label": "ISOWeekday",
|
|
768
1126
|
"detail": "ISOWeekday(dateValue) -> Number",
|
|
@@ -772,7 +1130,7 @@
|
|
|
772
1130
|
"kind": 3,
|
|
773
1131
|
"documentation": {
|
|
774
1132
|
"kind": "markdown",
|
|
775
|
-
"value": "**[Depuis la version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRenvoie le jour de la semaine de la date donnée, selon la norme ISO 8601. Plage de valeurs de 1 à 7, où le lundi correspond à `1` et le dimanche à `7`.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valeur de date à partir de laquelle renvoyer le jour de la semaine.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1133
|
+
"value": "**[Depuis la version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRenvoie le jour de la semaine de la date donnée, selon la norme ISO 8601. Plage de valeurs de 1 à 7, où le lundi correspond à `1` et le dimanche à `7`.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Valeur de date à partir de laquelle renvoyer le jour de la semaine.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
776
1134
|
}
|
|
777
1135
|
},
|
|
778
1136
|
"parametersInfo": {
|
|
@@ -787,65 +1145,17 @@
|
|
|
787
1145
|
"sinceVersion": "1.12",
|
|
788
1146
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
|
|
789
1147
|
"description": "Renvoie l’année de la date donnée, selon le calendrier en semaines ISO 8601.",
|
|
790
|
-
"examples": "\n#####
|
|
1148
|
+
"examples": "\n##### Exemples\n\nRécupère l’année de la date donnée, selon le calendrier en semaines ISO 8601. Renvoie `1981` car cette date figure dans la première semaine de l’année suivante.\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",
|
|
791
1149
|
"completion": {
|
|
792
1150
|
"label": "ISOYear",
|
|
793
|
-
"detail": "ISOYear(dateValue) -> Number",
|
|
794
|
-
"insertText": "ISOYear(${1:dateValue_})$0",
|
|
795
|
-
"insertTextMode": 2,
|
|
796
|
-
"insertTextFormat": 2,
|
|
797
|
-
"kind": 3,
|
|
798
|
-
"documentation": {
|
|
799
|
-
"kind": "markdown",
|
|
800
|
-
"value": "**[Depuis la version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRenvoie l’année de la date donnée, selon le calendrier en semaines ISO 8601.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valeur de date à partir de laquelle récupérer l’année.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
801
|
-
}
|
|
802
|
-
},
|
|
803
|
-
"parametersInfo": {
|
|
804
|
-
"min": 1,
|
|
805
|
-
"max": 1
|
|
806
|
-
}
|
|
807
|
-
},
|
|
808
|
-
{
|
|
809
|
-
"type": "function",
|
|
810
|
-
"name": "millisecond",
|
|
811
|
-
"bundle": "core",
|
|
812
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond",
|
|
813
|
-
"description": "Renvoie les millisecondes de l’heure dans la date.",
|
|
814
|
-
"examples": "\n##### Exemple\n\nRécupère les millisecondes de la date/l’heure actuelles\n\n```arcade\nMillisecond(Now())\n```\n\n",
|
|
815
|
-
"completion": {
|
|
816
|
-
"label": "Millisecond",
|
|
817
|
-
"detail": "Millisecond(dateValue) -> Number",
|
|
818
|
-
"insertText": "Millisecond(${1:dateValue_})$0",
|
|
819
|
-
"insertTextMode": 2,
|
|
820
|
-
"insertTextFormat": 2,
|
|
821
|
-
"kind": 3,
|
|
822
|
-
"documentation": {
|
|
823
|
-
"kind": "markdown",
|
|
824
|
-
"value": "Renvoie les millisecondes de l’heure dans la date.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valeur de date à partir de laquelle récupérer les millisecondes.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
825
|
-
}
|
|
826
|
-
},
|
|
827
|
-
"parametersInfo": {
|
|
828
|
-
"min": 1,
|
|
829
|
-
"max": 1
|
|
830
|
-
}
|
|
831
|
-
},
|
|
832
|
-
{
|
|
833
|
-
"type": "function",
|
|
834
|
-
"name": "minute",
|
|
835
|
-
"bundle": "core",
|
|
836
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute",
|
|
837
|
-
"description": "Renvoie les minutes de l’heure dans la date donnée.",
|
|
838
|
-
"examples": "\n##### Exemple\n\nRécupère les minutes de la date/l’heure actuelles\n\n```arcade\nMinute(Now())\n```\n\n",
|
|
839
|
-
"completion": {
|
|
840
|
-
"label": "Minute",
|
|
841
|
-
"detail": "Minute(dateValue) -> Number",
|
|
842
|
-
"insertText": "Minute(${1:dateValue_})$0",
|
|
1151
|
+
"detail": "ISOYear(dateValue) -> Number",
|
|
1152
|
+
"insertText": "ISOYear(${1:dateValue_})$0",
|
|
843
1153
|
"insertTextMode": 2,
|
|
844
1154
|
"insertTextFormat": 2,
|
|
845
1155
|
"kind": 3,
|
|
846
1156
|
"documentation": {
|
|
847
1157
|
"kind": "markdown",
|
|
848
|
-
"value": "
|
|
1158
|
+
"value": "**[Depuis la version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRenvoie l’année de la date donnée, selon le calendrier en semaines ISO 8601.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Valeur de date à partir de laquelle récupérer l’année.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
849
1159
|
}
|
|
850
1160
|
},
|
|
851
1161
|
"parametersInfo": {
|
|
@@ -853,13 +1163,115 @@
|
|
|
853
1163
|
"max": 1
|
|
854
1164
|
}
|
|
855
1165
|
},
|
|
1166
|
+
[
|
|
1167
|
+
{
|
|
1168
|
+
"type": "function",
|
|
1169
|
+
"name": "millisecond",
|
|
1170
|
+
"bundle": "core",
|
|
1171
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond1",
|
|
1172
|
+
"description": "Returns the millisecond of the time in the date.",
|
|
1173
|
+
"examples": "\n##### Exemple\n\nGets the millisecond of the current time\n\n```arcade\nMillisecond(Now())\n```\n\n",
|
|
1174
|
+
"completion": {
|
|
1175
|
+
"label": "Millisecond",
|
|
1176
|
+
"detail": "Millisecond(dateValue) -> Number",
|
|
1177
|
+
"insertText": "Millisecond(${1:dateValue_})$0",
|
|
1178
|
+
"insertTextMode": 2,
|
|
1179
|
+
"insertTextFormat": 2,
|
|
1180
|
+
"kind": 3,
|
|
1181
|
+
"documentation": {
|
|
1182
|
+
"kind": "markdown",
|
|
1183
|
+
"value": "Returns the millisecond of the time in the date.\n\n**Paramètre**\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**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1184
|
+
}
|
|
1185
|
+
},
|
|
1186
|
+
"parametersInfo": {
|
|
1187
|
+
"min": 1,
|
|
1188
|
+
"max": 1
|
|
1189
|
+
}
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
"type": "function",
|
|
1193
|
+
"name": "millisecond",
|
|
1194
|
+
"bundle": "core",
|
|
1195
|
+
"sinceVersion": "1.24",
|
|
1196
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond2",
|
|
1197
|
+
"description": "Returns the millisecond of the given time.",
|
|
1198
|
+
"examples": "\n##### Exemple\n\nGets the millisecond of the time\n\n```arcade\nHour(Time(2, 59, 23, 450))\n// returns 450\n```\n\n",
|
|
1199
|
+
"completion": {
|
|
1200
|
+
"label": "Millisecond",
|
|
1201
|
+
"detail": "Millisecond(timeValue) -> Number",
|
|
1202
|
+
"insertText": "Millisecond(${1:timeValue_})$0",
|
|
1203
|
+
"insertTextMode": 2,
|
|
1204
|
+
"insertTextFormat": 2,
|
|
1205
|
+
"kind": 3,
|
|
1206
|
+
"documentation": {
|
|
1207
|
+
"kind": "markdown",
|
|
1208
|
+
"value": "**[Depuis la version 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the millisecond of the given time.\n\n**Paramètre**\n\n- **timeValue**: Time - A Time value from which to get the millisecond.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1209
|
+
}
|
|
1210
|
+
},
|
|
1211
|
+
"parametersInfo": {
|
|
1212
|
+
"min": 1,
|
|
1213
|
+
"max": 1
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
],
|
|
1217
|
+
[
|
|
1218
|
+
{
|
|
1219
|
+
"type": "function",
|
|
1220
|
+
"name": "minute",
|
|
1221
|
+
"bundle": "core",
|
|
1222
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute1",
|
|
1223
|
+
"description": "Returns the minute of the time in the given date.",
|
|
1224
|
+
"examples": "\n##### Exemple\n\nGets the minute of the current time\n\n```arcade\nMinute(Now())\n```\n\n",
|
|
1225
|
+
"completion": {
|
|
1226
|
+
"label": "Minute",
|
|
1227
|
+
"detail": "Minute(dateValue) -> Number",
|
|
1228
|
+
"insertText": "Minute(${1:dateValue_})$0",
|
|
1229
|
+
"insertTextMode": 2,
|
|
1230
|
+
"insertTextFormat": 2,
|
|
1231
|
+
"kind": 3,
|
|
1232
|
+
"documentation": {
|
|
1233
|
+
"kind": "markdown",
|
|
1234
|
+
"value": "Returns the minute of the time in the given date.\n\n**Paramètre**\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**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1235
|
+
}
|
|
1236
|
+
},
|
|
1237
|
+
"parametersInfo": {
|
|
1238
|
+
"min": 1,
|
|
1239
|
+
"max": 1
|
|
1240
|
+
}
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1243
|
+
"type": "function",
|
|
1244
|
+
"name": "minute",
|
|
1245
|
+
"bundle": "core",
|
|
1246
|
+
"sinceVersion": "1.24",
|
|
1247
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute2",
|
|
1248
|
+
"description": "Returns the minute of the given time.",
|
|
1249
|
+
"examples": "\n##### Exemple\n\nGets the minute of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 59\n```\n\n",
|
|
1250
|
+
"completion": {
|
|
1251
|
+
"label": "Minute",
|
|
1252
|
+
"detail": "Minute(timeValue) -> Number",
|
|
1253
|
+
"insertText": "Minute(${1:timeValue_})$0",
|
|
1254
|
+
"insertTextMode": 2,
|
|
1255
|
+
"insertTextFormat": 2,
|
|
1256
|
+
"kind": 3,
|
|
1257
|
+
"documentation": {
|
|
1258
|
+
"kind": "markdown",
|
|
1259
|
+
"value": "**[Depuis la version 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the minute of the given time.\n\n**Paramètre**\n\n- **timeValue**: Time - A Time value from which to get the minute.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1260
|
+
}
|
|
1261
|
+
},
|
|
1262
|
+
"parametersInfo": {
|
|
1263
|
+
"min": 1,
|
|
1264
|
+
"max": 1
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
],
|
|
856
1268
|
{
|
|
857
1269
|
"type": "function",
|
|
858
1270
|
"name": "month",
|
|
859
1271
|
"bundle": "core",
|
|
860
1272
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#month",
|
|
861
1273
|
"description": "Renvoie le mois de la date donnée. Plage de valeurs de 0 à 11 où le mois de janvier correspond à `0` et le mois de décembre à `11`.",
|
|
862
|
-
"examples": "\n#####
|
|
1274
|
+
"examples": "\n##### Exemples\n\nRécupère le mois de la date donnée. Renvoie 11 pour le mois de décembre.\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",
|
|
863
1275
|
"completion": {
|
|
864
1276
|
"label": "Month",
|
|
865
1277
|
"detail": "Month(dateValue) -> Number",
|
|
@@ -869,7 +1281,7 @@
|
|
|
869
1281
|
"kind": 3,
|
|
870
1282
|
"documentation": {
|
|
871
1283
|
"kind": "markdown",
|
|
872
|
-
"value": "Renvoie le mois de la date donnée. Plage de valeurs de 0 à 11 où le mois de janvier correspond à `0` et le mois de décembre à `11`.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valeur de date à partir de laquelle récupérer le mois.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1284
|
+
"value": "Renvoie le mois de la date donnée. Plage de valeurs de 0 à 11 où le mois de janvier correspond à `0` et le mois de décembre à `11`.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Valeur de date à partir de laquelle récupérer le mois.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
873
1285
|
}
|
|
874
1286
|
},
|
|
875
1287
|
"parametersInfo": {
|
|
@@ -901,23 +1313,227 @@
|
|
|
901
1313
|
"max": 0
|
|
902
1314
|
}
|
|
903
1315
|
},
|
|
1316
|
+
[
|
|
1317
|
+
{
|
|
1318
|
+
"type": "function",
|
|
1319
|
+
"name": "second",
|
|
1320
|
+
"bundle": "core",
|
|
1321
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second1",
|
|
1322
|
+
"description": "Returns the second of the time in the date.",
|
|
1323
|
+
"examples": "\n##### Exemple\n\nGets the second of the current time\n\n```arcade\nSecond(Now())\n```\n\n",
|
|
1324
|
+
"completion": {
|
|
1325
|
+
"label": "Second",
|
|
1326
|
+
"detail": "Second(dateValue) -> Number",
|
|
1327
|
+
"insertText": "Second(${1:dateValue_})$0",
|
|
1328
|
+
"insertTextMode": 2,
|
|
1329
|
+
"insertTextFormat": 2,
|
|
1330
|
+
"kind": 3,
|
|
1331
|
+
"documentation": {
|
|
1332
|
+
"kind": "markdown",
|
|
1333
|
+
"value": "Returns the second of the time in the date.\n\n**Paramètre**\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**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1334
|
+
}
|
|
1335
|
+
},
|
|
1336
|
+
"parametersInfo": {
|
|
1337
|
+
"min": 1,
|
|
1338
|
+
"max": 1
|
|
1339
|
+
}
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
"type": "function",
|
|
1343
|
+
"name": "second",
|
|
1344
|
+
"bundle": "core",
|
|
1345
|
+
"sinceVersion": "1.24",
|
|
1346
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second2",
|
|
1347
|
+
"description": "Returns the second of the given time.",
|
|
1348
|
+
"examples": "\n##### Exemple\n\nGets the second of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 23\n```\n\n",
|
|
1349
|
+
"completion": {
|
|
1350
|
+
"label": "Second",
|
|
1351
|
+
"detail": "Second(timeValue) -> Number",
|
|
1352
|
+
"insertText": "Second(${1:timeValue_})$0",
|
|
1353
|
+
"insertTextMode": 2,
|
|
1354
|
+
"insertTextFormat": 2,
|
|
1355
|
+
"kind": 3,
|
|
1356
|
+
"documentation": {
|
|
1357
|
+
"kind": "markdown",
|
|
1358
|
+
"value": "**[Depuis la version 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the second of the given time.\n\n**Paramètre**\n\n- **timeValue**: Time - A Time value from which to get the second.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1359
|
+
}
|
|
1360
|
+
},
|
|
1361
|
+
"parametersInfo": {
|
|
1362
|
+
"min": 1,
|
|
1363
|
+
"max": 1
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
],
|
|
1367
|
+
[
|
|
1368
|
+
{
|
|
1369
|
+
"type": "function",
|
|
1370
|
+
"name": "time",
|
|
1371
|
+
"bundle": "core",
|
|
1372
|
+
"sinceVersion": "1.24",
|
|
1373
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time1",
|
|
1374
|
+
"description": "Creates a Time value representing the current time in the time zone of the profile's execution context.",
|
|
1375
|
+
"examples": "\n##### Exemple\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",
|
|
1376
|
+
"completion": {
|
|
1377
|
+
"label": "Time",
|
|
1378
|
+
"detail": "Time() -> Time",
|
|
1379
|
+
"insertText": "Time($0)",
|
|
1380
|
+
"insertTextMode": 2,
|
|
1381
|
+
"insertTextFormat": 2,
|
|
1382
|
+
"kind": 3,
|
|
1383
|
+
"documentation": {
|
|
1384
|
+
"kind": "markdown",
|
|
1385
|
+
"value": "**[Depuis la version 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**Valeur de retour**: Time"
|
|
1386
|
+
}
|
|
1387
|
+
},
|
|
1388
|
+
"parametersInfo": {
|
|
1389
|
+
"min": 0,
|
|
1390
|
+
"max": 0
|
|
1391
|
+
}
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
"type": "function",
|
|
1395
|
+
"name": "time",
|
|
1396
|
+
"bundle": "core",
|
|
1397
|
+
"sinceVersion": "1.24",
|
|
1398
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time2",
|
|
1399
|
+
"description": "Creates a Time value from a given date.",
|
|
1400
|
+
"examples": "\n##### Exemple\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",
|
|
1401
|
+
"completion": {
|
|
1402
|
+
"label": "Time",
|
|
1403
|
+
"detail": "Time(dateValue) -> Time",
|
|
1404
|
+
"insertText": "Time(${1:dateValue_})$0",
|
|
1405
|
+
"insertTextMode": 2,
|
|
1406
|
+
"insertTextFormat": 2,
|
|
1407
|
+
"kind": 3,
|
|
1408
|
+
"documentation": {
|
|
1409
|
+
"kind": "markdown",
|
|
1410
|
+
"value": "**[Depuis la version 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a given date.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to get the time.\n\n**Valeur de retour**: Time"
|
|
1411
|
+
}
|
|
1412
|
+
},
|
|
1413
|
+
"parametersInfo": {
|
|
1414
|
+
"min": 1,
|
|
1415
|
+
"max": 1
|
|
1416
|
+
}
|
|
1417
|
+
},
|
|
1418
|
+
{
|
|
1419
|
+
"type": "function",
|
|
1420
|
+
"name": "time",
|
|
1421
|
+
"bundle": "core",
|
|
1422
|
+
"sinceVersion": "1.24",
|
|
1423
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time3",
|
|
1424
|
+
"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`.",
|
|
1425
|
+
"examples": "\n##### Exemples\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",
|
|
1426
|
+
"completion": {
|
|
1427
|
+
"label": "Time",
|
|
1428
|
+
"detail": "Time(numValue) -> Time",
|
|
1429
|
+
"insertText": "Time(${1:numValue_})$0",
|
|
1430
|
+
"insertTextMode": 2,
|
|
1431
|
+
"insertTextFormat": 2,
|
|
1432
|
+
"kind": 3,
|
|
1433
|
+
"documentation": {
|
|
1434
|
+
"kind": "markdown",
|
|
1435
|
+
"value": "**[Depuis la version 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**Paramètre**\n\n- **numValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since midnight.\n\n**Valeur de retour**: Time"
|
|
1436
|
+
}
|
|
1437
|
+
},
|
|
1438
|
+
"parametersInfo": {
|
|
1439
|
+
"min": 1,
|
|
1440
|
+
"max": 1
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
"type": "function",
|
|
1445
|
+
"name": "time",
|
|
1446
|
+
"bundle": "core",
|
|
1447
|
+
"sinceVersion": "1.24",
|
|
1448
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time4",
|
|
1449
|
+
"description": "Creates a Time value from inputs representing hours, minutes, seconds, and milliseconds.",
|
|
1450
|
+
"examples": "\n##### Exemple\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",
|
|
1451
|
+
"completion": {
|
|
1452
|
+
"label": "Time",
|
|
1453
|
+
"detail": "Time(hours, minutes, seconds?, milliseconds?) -> Time",
|
|
1454
|
+
"insertText": "Time(${1:hours_}, ${2:minutes_})$0",
|
|
1455
|
+
"insertTextMode": 2,
|
|
1456
|
+
"insertTextFormat": 2,
|
|
1457
|
+
"kind": 3,
|
|
1458
|
+
"documentation": {
|
|
1459
|
+
"kind": "markdown",
|
|
1460
|
+
"value": "**[Depuis la version 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**Paramètres**\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**Valeur de retour**: Time"
|
|
1461
|
+
}
|
|
1462
|
+
},
|
|
1463
|
+
"parametersInfo": {
|
|
1464
|
+
"min": 2,
|
|
1465
|
+
"max": 4
|
|
1466
|
+
}
|
|
1467
|
+
},
|
|
1468
|
+
{
|
|
1469
|
+
"type": "function",
|
|
1470
|
+
"name": "time",
|
|
1471
|
+
"bundle": "core",
|
|
1472
|
+
"sinceVersion": "1.24",
|
|
1473
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time5",
|
|
1474
|
+
"description": "Creates a Time value from a text input representing time, with an optional input indicating the text's format.",
|
|
1475
|
+
"examples": "\n##### Exemples\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",
|
|
1476
|
+
"completion": {
|
|
1477
|
+
"label": "Time",
|
|
1478
|
+
"detail": "Time(timeValue, format?) -> Time",
|
|
1479
|
+
"insertText": "Time(${1:timeValue_})$0",
|
|
1480
|
+
"insertTextMode": 2,
|
|
1481
|
+
"insertTextFormat": 2,
|
|
1482
|
+
"kind": 3,
|
|
1483
|
+
"documentation": {
|
|
1484
|
+
"kind": "markdown",
|
|
1485
|
+
"value": "**[Depuis la version 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**Paramètres**\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**Valeur de retour**: Time"
|
|
1486
|
+
}
|
|
1487
|
+
},
|
|
1488
|
+
"parametersInfo": {
|
|
1489
|
+
"min": 1,
|
|
1490
|
+
"max": 2
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
],
|
|
1494
|
+
{
|
|
1495
|
+
"type": "function",
|
|
1496
|
+
"name": "timestamp",
|
|
1497
|
+
"bundle": "core",
|
|
1498
|
+
"sinceVersion": "1.1",
|
|
1499
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
|
|
1500
|
+
"description": "Crée une valeur de date représentant la date et l’heure actuelles en UTC.",
|
|
1501
|
+
"examples": "\n##### Exemple\n\nCrée une date en heure UTC\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
|
|
1502
|
+
"completion": {
|
|
1503
|
+
"label": "Timestamp",
|
|
1504
|
+
"detail": "Timestamp() -> Date",
|
|
1505
|
+
"insertText": "Timestamp($0)",
|
|
1506
|
+
"insertTextMode": 2,
|
|
1507
|
+
"insertTextFormat": 2,
|
|
1508
|
+
"kind": 3,
|
|
1509
|
+
"documentation": {
|
|
1510
|
+
"kind": "markdown",
|
|
1511
|
+
"value": "**[Depuis la version 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCrée une valeur de date représentant la date et l’heure actuelles en UTC.\n\n**Valeur de retour**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
1512
|
+
}
|
|
1513
|
+
},
|
|
1514
|
+
"parametersInfo": {
|
|
1515
|
+
"min": 0,
|
|
1516
|
+
"max": 0
|
|
1517
|
+
}
|
|
1518
|
+
},
|
|
904
1519
|
{
|
|
905
1520
|
"type": "function",
|
|
906
|
-
"name": "
|
|
1521
|
+
"name": "timezone",
|
|
907
1522
|
"bundle": "core",
|
|
908
|
-
"
|
|
909
|
-
"
|
|
910
|
-
"
|
|
1523
|
+
"sinceVersion": "1.24",
|
|
1524
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone",
|
|
1525
|
+
"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",
|
|
1526
|
+
"examples": "\n##### Exemple\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",
|
|
911
1527
|
"completion": {
|
|
912
|
-
"label": "
|
|
913
|
-
"detail": "
|
|
914
|
-
"insertText": "
|
|
1528
|
+
"label": "TimeZone",
|
|
1529
|
+
"detail": "TimeZone(dateValue) -> Text",
|
|
1530
|
+
"insertText": "TimeZone(${1:dateValue_})$0",
|
|
915
1531
|
"insertTextMode": 2,
|
|
916
1532
|
"insertTextFormat": 2,
|
|
917
1533
|
"kind": 3,
|
|
918
1534
|
"documentation": {
|
|
919
1535
|
"kind": "markdown",
|
|
920
|
-
"value": "
|
|
1536
|
+
"value": "**[Depuis la version 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**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone.\n\n**Valeur de retour**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
921
1537
|
}
|
|
922
1538
|
},
|
|
923
1539
|
"parametersInfo": {
|
|
@@ -927,27 +1543,27 @@
|
|
|
927
1543
|
},
|
|
928
1544
|
{
|
|
929
1545
|
"type": "function",
|
|
930
|
-
"name": "
|
|
1546
|
+
"name": "timezoneoffset",
|
|
931
1547
|
"bundle": "core",
|
|
932
|
-
"sinceVersion": "1.
|
|
933
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#
|
|
934
|
-
"description": "
|
|
935
|
-
"examples": "\n##### Exemple\n\
|
|
1548
|
+
"sinceVersion": "1.24",
|
|
1549
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezoneoffset",
|
|
1550
|
+
"description": "Returns the time zone offset in minutes from UTC for the given Date.",
|
|
1551
|
+
"examples": "\n##### Exemple\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",
|
|
936
1552
|
"completion": {
|
|
937
|
-
"label": "
|
|
938
|
-
"detail": "
|
|
939
|
-
"insertText": "
|
|
1553
|
+
"label": "TimeZoneOffset",
|
|
1554
|
+
"detail": "TimeZoneOffset(dateValue) -> Number",
|
|
1555
|
+
"insertText": "TimeZoneOffset(${1:dateValue_})$0",
|
|
940
1556
|
"insertTextMode": 2,
|
|
941
1557
|
"insertTextFormat": 2,
|
|
942
1558
|
"kind": 3,
|
|
943
1559
|
"documentation": {
|
|
944
1560
|
"kind": "markdown",
|
|
945
|
-
"value": "**[Depuis la version 1.
|
|
1561
|
+
"value": "**[Depuis la version 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**Paramètre**\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**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
946
1562
|
}
|
|
947
1563
|
},
|
|
948
1564
|
"parametersInfo": {
|
|
949
|
-
"min":
|
|
950
|
-
"max":
|
|
1565
|
+
"min": 1,
|
|
1566
|
+
"max": 1
|
|
951
1567
|
}
|
|
952
1568
|
},
|
|
953
1569
|
{
|
|
@@ -1031,7 +1647,7 @@
|
|
|
1031
1647
|
"sinceVersion": "1.14",
|
|
1032
1648
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#week",
|
|
1033
1649
|
"description": "Renvoie le numéro de semaine dans l’année de la date donnée. Plage de valeurs de 0 à 53 dans laquelle la première semaine de l’année correspond à `0` et la dernière semaine de l’année correspond à `51`, `52` ou `53`, selon l’année. Il est possible que la première et la dernière semaine ne fassent pas sept jours.",
|
|
1034
|
-
"examples": "\n##### Exemples\n\nUtiliser le début de semaine par défaut (dimanche)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nDéfinir le début de semaine sur jeudi\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nDéfinir le début de semaine sur vendredi\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",
|
|
1650
|
+
"examples": "\n##### Exemples\n\nUtiliser le début de semaine par défaut (dimanche)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nDéfinir le début de semaine sur jeudi\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nDéfinir le début de semaine sur vendredi\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",
|
|
1035
1651
|
"completion": {
|
|
1036
1652
|
"label": "Week",
|
|
1037
1653
|
"detail": "Week(dateValue, startDay?) -> Number",
|
|
@@ -1041,7 +1657,7 @@
|
|
|
1041
1657
|
"kind": 3,
|
|
1042
1658
|
"documentation": {
|
|
1043
1659
|
"kind": "markdown",
|
|
1044
|
-
"value": "**[Depuis la version 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRenvoie le numéro de semaine dans l’année de la date donnée. Plage de valeurs de 0 à 53 dans laquelle la première semaine de l’année correspond à `0` et la dernière semaine de l’année correspond à `51`, `52` ou `53`, selon l’année. Il est possible que la première et la dernière semaine ne fassent pas sept jours.\n\n**Paramètres**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valeur de date à partir de laquelle récupérer la semaine.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Nombre représentant le premier jour de la semaine. Dimanche = 0, Lundi = 1, Mardi = 2, Mercredi = 3, Jeudi = 4, Vendredi = 5 et Samedi = 6. La valeur par défaut est `0` (dimanche).\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1660
|
+
"value": "**[Depuis la version 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRenvoie le numéro de semaine dans l’année de la date donnée. Plage de valeurs de 0 à 53 dans laquelle la première semaine de l’année correspond à `0` et la dernière semaine de l’année correspond à `51`, `52` ou `53`, selon l’année. Il est possible que la première et la dernière semaine ne fassent pas sept jours.\n\n**Paramètres**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Valeur de date à partir de laquelle récupérer la semaine.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Nombre représentant le premier jour de la semaine. Dimanche = 0, Lundi = 1, Mardi = 2, Mercredi = 3, Jeudi = 4, Vendredi = 5 et Samedi = 6. La valeur par défaut est `0` (dimanche).\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1045
1661
|
}
|
|
1046
1662
|
},
|
|
1047
1663
|
"parametersInfo": {
|
|
@@ -1055,7 +1671,7 @@
|
|
|
1055
1671
|
"bundle": "core",
|
|
1056
1672
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#weekday",
|
|
1057
1673
|
"description": "Renvoie le jour de la semaine de la date donnée. Plage de valeurs de 0 à 6 où le dimanche correspond à `0` et le samedi à `6`.",
|
|
1058
|
-
"examples": "\n#####
|
|
1674
|
+
"examples": "\n##### Exemples\n\nRenvoie le jour de la semaine de la date donnée. Renvoie `3` pour le mercredi.\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",
|
|
1059
1675
|
"completion": {
|
|
1060
1676
|
"label": "Weekday",
|
|
1061
1677
|
"detail": "Weekday(dateValue) -> Number",
|
|
@@ -1065,7 +1681,7 @@
|
|
|
1065
1681
|
"kind": 3,
|
|
1066
1682
|
"documentation": {
|
|
1067
1683
|
"kind": "markdown",
|
|
1068
|
-
"value": "Renvoie le jour de la semaine de la date donnée. Plage de valeurs de 0 à 6 où le dimanche correspond à `0` et le samedi à `6`.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valeur de date à partir de laquelle renvoyer le jour de la semaine.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1684
|
+
"value": "Renvoie le jour de la semaine de la date donnée. Plage de valeurs de 0 à 6 où le dimanche correspond à `0` et le samedi à `6`.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Valeur de date à partir de laquelle renvoyer le jour de la semaine.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1069
1685
|
}
|
|
1070
1686
|
},
|
|
1071
1687
|
"parametersInfo": {
|
|
@@ -1079,7 +1695,7 @@
|
|
|
1079
1695
|
"bundle": "core",
|
|
1080
1696
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#year",
|
|
1081
1697
|
"description": "Renvoie l’année de la date donnée.",
|
|
1082
|
-
"examples": "\n#####
|
|
1698
|
+
"examples": "\n##### Exemples\n\nRécupère l’année de la date actuelle\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",
|
|
1083
1699
|
"completion": {
|
|
1084
1700
|
"label": "Year",
|
|
1085
1701
|
"detail": "Year(dateValue) -> Number",
|
|
@@ -1089,7 +1705,7 @@
|
|
|
1089
1705
|
"kind": 3,
|
|
1090
1706
|
"documentation": {
|
|
1091
1707
|
"kind": "markdown",
|
|
1092
|
-
"value": "Renvoie l’année de la date donnée.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valeur de date à partir de laquelle récupérer l’année.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1708
|
+
"value": "Renvoie l’année de la date donnée.\n\n**Paramètre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Valeur de date à partir de laquelle récupérer l’année.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1093
1709
|
}
|
|
1094
1710
|
},
|
|
1095
1711
|
"parametersInfo": {
|
|
@@ -3348,6 +3964,31 @@
|
|
|
3348
3964
|
"max": 4
|
|
3349
3965
|
}
|
|
3350
3966
|
},
|
|
3967
|
+
{
|
|
3968
|
+
"type": "function",
|
|
3969
|
+
"name": "featuresetbyrelationshipclass",
|
|
3970
|
+
"bundle": "data-access",
|
|
3971
|
+
"sinceVersion": "1.24",
|
|
3972
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
|
|
3973
|
+
"description": "Returns the related records for a given feature as a FeatureSet based on the class name of the relationship.",
|
|
3974
|
+
"examples": "\n##### Exemple\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",
|
|
3975
|
+
"completion": {
|
|
3976
|
+
"label": "FeatureSetByRelationshipClass",
|
|
3977
|
+
"detail": "FeatureSetByRelationshipClass(inputFeature, relationshipClass, fieldNames?, includeGeometry?) -> FeatureSet",
|
|
3978
|
+
"insertText": "FeatureSetByRelationshipClass(${1:inputFeature_}, ${2:relationshipClass_})$0",
|
|
3979
|
+
"insertTextMode": 2,
|
|
3980
|
+
"insertTextFormat": 2,
|
|
3981
|
+
"kind": 3,
|
|
3982
|
+
"documentation": {
|
|
3983
|
+
"kind": "markdown",
|
|
3984
|
+
"value": "**[Depuis la version 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**Paramètres**\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**Valeur de retour**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
3985
|
+
}
|
|
3986
|
+
},
|
|
3987
|
+
"parametersInfo": {
|
|
3988
|
+
"min": 2,
|
|
3989
|
+
"max": 4
|
|
3990
|
+
}
|
|
3991
|
+
},
|
|
3351
3992
|
{
|
|
3352
3993
|
"type": "function",
|
|
3353
3994
|
"name": "featuresetbyrelationshipname",
|
|
@@ -5110,7 +5751,7 @@
|
|
|
5110
5751
|
"bundle": "core",
|
|
5111
5752
|
"link": "https://developers.arcgis.com/arcade/function-reference/text_functions/#text",
|
|
5112
5753
|
"description": "Convertit son argument en valeur de texte et, éventuellement, le met en forme. Renvoie `null` en cas d’échec.",
|
|
5113
|
-
"examples": "\n##### Exemples\n\nCompléter le nombre avec un zéro à gauche de la décimale\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nRéduire le nombre à gauche de la décimale\n\n```arcade\nText(123, '00') // '23'\n```\n\nRegrouper le nombre par milliers\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nArrondir le nombre à deux décimales\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nAppliquer le format monétaire au nombre\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nArrondir le nombre à deux décimales\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nConserver les chiffres significatifs et regrouper par milliers\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nMettre en forme le nombre et appliquer le format positif/négatif. S’il existe un sous-critère négatif, il sert uniquement à spécifier le préfixe et le suffixe négatif\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nMultiplier par 100 et appliquer le format de pourcentage\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nMettre en forme la date et l’heure sur la date et l’heure actuelles. P. ex., 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nLa date stockée dans le champ `datetime` représente déjà l’heure locale, mais Arcade suppose qu’elle est en UTC. Décale l’heure locale en UTC pour éviter d’appliquer deux fois le décalage du fuseau horaire.\n\n```arcade\nText(
|
|
5754
|
+
"examples": "\n##### Exemples\n\nCompléter le nombre avec un zéro à gauche de la décimale\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nRéduire le nombre à gauche de la décimale\n\n```arcade\nText(123, '00') // '23'\n```\n\nRegrouper le nombre par milliers\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nArrondir le nombre à deux décimales\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nAppliquer le format monétaire au nombre\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nArrondir le nombre à deux décimales\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nConserver les chiffres significatifs et regrouper par milliers\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nMettre en forme le nombre et appliquer le format positif/négatif. S’il existe un sous-critère négatif, il sert uniquement à spécifier le préfixe et le suffixe négatif\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nMultiplier par 100 et appliquer le format de pourcentage\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nMettre en forme la date et l’heure sur la date et l’heure actuelles. P. ex., 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nLa date stockée dans le champ `datetime` représente déjà l’heure locale, mais Arcade suppose qu’elle est en UTC. Décale l’heure locale en UTC pour éviter d’appliquer deux fois le décalage du fuseau horaire.\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",
|
|
5114
5755
|
"completion": {
|
|
5115
5756
|
"label": "Text",
|
|
5116
5757
|
"detail": "Text(value, format?) -> Text",
|
|
@@ -5760,6 +6401,31 @@
|
|
|
5760
6401
|
"max": 2
|
|
5761
6402
|
}
|
|
5762
6403
|
},
|
|
6404
|
+
{
|
|
6405
|
+
"type": "function",
|
|
6406
|
+
"name": "equals",
|
|
6407
|
+
"bundle": "core",
|
|
6408
|
+
"sinceVersion": "1.24",
|
|
6409
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/logical_functions/#equals",
|
|
6410
|
+
"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.",
|
|
6411
|
+
"examples": "\n##### Exemple\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",
|
|
6412
|
+
"completion": {
|
|
6413
|
+
"label": "Equals",
|
|
6414
|
+
"detail": "Equals(value1, value2) -> Boolean",
|
|
6415
|
+
"insertText": "Equals(${1:value1_}, ${2:value2_})$0",
|
|
6416
|
+
"insertTextMode": 2,
|
|
6417
|
+
"insertTextFormat": 2,
|
|
6418
|
+
"kind": 3,
|
|
6419
|
+
"documentation": {
|
|
6420
|
+
"kind": "markdown",
|
|
6421
|
+
"value": "**[Depuis la version 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**Paramètres**\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**Valeur de retour**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
6422
|
+
}
|
|
6423
|
+
},
|
|
6424
|
+
"parametersInfo": {
|
|
6425
|
+
"min": 2,
|
|
6426
|
+
"max": 2
|
|
6427
|
+
}
|
|
6428
|
+
},
|
|
5763
6429
|
{
|
|
5764
6430
|
"type": "function",
|
|
5765
6431
|
"name": "iif",
|
|
@@ -6195,7 +6861,7 @@
|
|
|
6195
6861
|
"kind": 3,
|
|
6196
6862
|
"documentation": {
|
|
6197
6863
|
"kind": "markdown",
|
|
6198
|
-
"value": "**[Depuis la version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nGénère une valeur de code de hachage pour la variable donnée.\n\n**Paramètre**\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) - Variable à hacher.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6864
|
+
"value": "**[Depuis la version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nGénère une valeur de code de hachage pour la variable donnée.\n\n**Paramètre**\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 - Variable à hacher.\n\n**Valeur de retour**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6199
6865
|
}
|
|
6200
6866
|
},
|
|
6201
6867
|
"parametersInfo": {
|