{"id":2190282,"date":"2023-12-21T05:00:03","date_gmt":"2023-12-21T13:00:03","guid":{"rendered":"https:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=2190282"},"modified":"2024-11-11T12:29:02","modified_gmt":"2024-11-11T20:29:02","slug":"get-the-most-out-of-your-temporal-data-with-arcade","status":"publish","type":"blog","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade","title":{"rendered":"Get the most out of your temporal data with Arcade"},"author":58731,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_searchwp_excluded":""},"categories":[777102,22941],"tags":[32551,661121],"industry":[],"product":[36551],"class_list":["post-2190282","blog","type-blog","status-publish","format-standard","hentry","category-arcade","category-mapping","tag-arcade","tag-dates","product-arcgis-online"],"acf":{"authors":[{"ID":58731,"user_firstname":"Lauren","user_lastname":"Ballantyne","nickname":"Lauren Ballantyne","user_nicename":"lballantyne","display_name":"Lauren Ballantyne","user_email":"lballantyne@esri.com","user_url":"","user_registered":"2020-06-30 19:39:04","user_description":"Lauren Ballantyne is a Product Engineer on the ArcGIS Online team and has a background in environmental science and conservation ecology. Her feature areas include Map Viewer, Arcade, and hosted feature layer views. Lauren is passionate about developing intuitive tools that help create engaging, informative, and data-rich web maps.","user_avatar":"<img data-del=\"avatar\" src='https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2020\/07\/IMG_0214-213x200.jpg' class='avatar pp-user-avatar avatar-96 photo ' height='96' width='96'\/>"},{"ID":319692,"user_firstname":"Taylor","user_lastname":"McNeil","nickname":"Taylor McNeil","user_nicename":"tmcneil","display_name":"Taylor McNeil","user_email":"tmcneil@esri.com","user_url":"","user_registered":"2022-10-06 12:43:53","user_description":"Taylor is a Product Engineer on the ArcGIS Online team based in Nova Scotia, Canada. She has received a BSc in Biology and a MSc in Applied Geomatics. When she's not at work, she can be found taking care of her houseplants, reading copious amounts of fiction, and exploring local thrift stores.","user_avatar":"<img data-del=\"avatar\" src='https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2022\/10\/BlogProfilePicCrop-213x200.jpg' class='avatar pp-user-avatar avatar-96 photo ' height='96' width='96'\/>"}],"short_description":"Learn how to refine date and time values with Arcade to create informative pop-ups, visualizations, and labels.","flexible_content":[{"acf_fc_layout":"content","content":"<p><span data-contrast=\"auto\">Time is an integral piece to data collection, management, and visualization. To streamline working with time-aware data, three new field types, <\/span><a href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/time-is-on-your-side-with-new-field-types-in-arcgis-online\/\"><span data-contrast=\"none\">Time only, Date only, and Timestamp offset<\/span><\/a><span data-contrast=\"auto\">, were introduced into ArcGIS Online. Arcade is a key component to leveraging dates and times to produce impactful and informative maps.\u00a0<\/span><\/p>\n<h2>New and updated functions<\/h2>\n<p><span data-contrast=\"auto\">Several Arcade functions were updated and added to complement the arrival of these field types, providing you with an easy way to build maps around temporally significant data. A full list of these functions can be found in the <\/span><a href=\"https:\/\/developers.arcgis.com\/arcade\/guide\/release-notes\/#version-124\"><span data-contrast=\"none\">Arcade release notes<\/span><\/a><span data-contrast=\"auto\">. <\/span><\/p>\n<p><span data-contrast=\"auto\">In the next section, we\u2019ll walk through some practical examples that showcase how you can use Arcade to get the most out of your temporal data. Within each example, we\u2019ll focus on a new field type \u2013 Time only, Date only, or Timestamp offset \u2013 and highlight how Arcade can be used in conjunction with these fields to produce informative pop-ups, visualizations, and labels in your web map.<\/span><\/p>\n<h2>Practical examples<\/h2>\n<h3>1. Time only<\/h3>\n<p><span class=\"TextRun SCXW160353877 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">In this example, we have a point feature layer <\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">indicating<\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\"> locations of coffee shops throughout Texas, USA. Within the feature layer are two <\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">Tim<\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">e<\/span> <span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">o<\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">n<\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">l<\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">y<\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\"> fields which <\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">indicate<\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\"> the <\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">tim<\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">e<\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\"> o<\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">f day <\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">each<\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\"> store opens and closes. <\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">Using these feature attributes <\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">with<\/span> <span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">Arcade, we<\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\"> can author a<\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">n expression for our pop-up <\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">that <\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">will <\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">dynamically display the <\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">tim<\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">e<\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\"> until a <\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">location<\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\"> opens or closes depending on the <\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">store\u2019s <\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">operating hours<\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\"> and the current local <\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">tim<\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\">e<\/span><span class=\"NormalTextRun SCXW160353877 BCX0\" data-ccp-parastyle=\"No Spacing\"> in Texas.\u00a0<\/span><\/span><span class=\"EOP SCXW160353877 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n"},{"acf_fc_layout":"content","content":"<pre><code style=\"color: #24292e;background: #fff;padding: 1em\"><span style=\"color: #6a737d\">\/\/ get local Texas time<\/span>\r\n<span style=\"color: #bf4900\">var<\/span> cst = <span style=\"color: #0000b3\">Time()<\/span>\r\n\r\n<span style=\"color: #6a737d\">\/\/ get store opening and closing hours<\/span>\r\n<span style=\"color: #bf4900\">var<\/span> open = <span style=\"color: #0000b3\">$feature.store_open<\/span>\r\n<span style=\"color: #bf4900\">var<\/span> close = <span style=\"color: #0000b3\">$feature.store_close<\/span>\r\n\r\n<span style=\"color: #6a737d\">\/\/ if the store is open...<\/span>\r\n<span style=\"color: #bf4900\">if<\/span> (cst &gt;= open &amp;&amp; cst &lt; close) {\r\n  <span style=\"color: #6a737d\">\/\/ find the difference between the store closing time and current time<\/span>\r\n  <span style=\"color: #bf4900\">var<\/span> hrToClose = <span style=\"color: #0000b3\">DateDiff<\/span>(close, cst)\r\n\r\n  <span style=\"color: #6a737d\">\/\/ convert milliseconds to hh:mm:ss.sss format<\/span>\r\n  hrToClose = <span style=\"color: #0000b3\">Time<\/span>(hrToClose)\r\n\r\n  <span style=\"color: #6a737d\">\/\/ get hour(s) and minute(s) until store closes<\/span>\r\n  <span style=\"color: #bf4900\">var<\/span> hh = <span style=\"color: #0000b3\">Hour<\/span>(hrToClose) \r\n  <span style=\"color: #bf4900\">var<\/span> mm = <span style=\"color: #0000b3\">Minute<\/span>(hrToClose) + <span style=\"color: #136d3d\">1<\/span> <span style=\"color: #6a737d\">\/\/ round up to next minute to account for no seconds in estimate<\/span>\r\n\r\n  <span style=\"color: #6a737d\">\/\/ if the store will be open for &gt; 1 hour, <\/span>\r\n  <span style=\"color: #bf4900\">if<\/span> (hh &gt;= <span style=\"color: #136d3d\">1<\/span>) {\r\n    <span style=\"color: #bf4900\">return<\/span> <span style=\"color: #a31515\">`Closing in approximately <span style=\"color: #24292e\">${hh}<\/span> hour(s) and <span style=\"color: #24292e\">${mm}<\/span> minute(s).`<\/span> <span style=\"color: #6a737d\">\/\/ provide estimate in hours and minutes<\/span>\r\n  }\r\n  <span style=\"color: #6a737d\">\/\/ if the store is closing in less than an hour<\/span>\r\n  <span style=\"color: #bf4900\">if<\/span> (hh == <span style=\"color: #136d3d\">0<\/span>) {\r\n    <span style=\"color: #bf4900\">return<\/span> <span style=\"color: #a31515\">`Closing soon (approximately <span style=\"color: #24292e\">${mm}<\/span> minutes).`<\/span> <span style=\"color: #6a737d\">\/\/ provide estimate in minutes only<\/span>\r\n  }\r\n} \r\n\r\n<span style=\"color: #6a737d\">\/\/ if the store is opening soon<\/span>\r\n<span style=\"color: #bf4900\">if<\/span> (cst &lt; open) {\r\n  <span style=\"color: #bf4900\">var<\/span> hrToOpen = <span style=\"color: #0000b3\">DateDiff<\/span>(open, cst) <span style=\"color: #6a737d\">\/\/ get time until it opens in hh and mm<\/span>\r\n  hrToOpen = <span style=\"color: #0000b3\">Time<\/span>(hrToOpen)\r\n  <span style=\"color: #bf4900\">var<\/span> hh = <span style=\"color: #0000b3\">Hour<\/span>(hrToOpen)\r\n  <span style=\"color: #bf4900\">var<\/span> mm = <span style=\"color: #0000b3\">Minute<\/span>(hrToOpen) + <span style=\"color: #136d3d\">1<\/span> <span style=\"color: #6a737d\">\/\/ round up to account for no seconds in estimate<\/span>\r\n  <span style=\"color: #6a737d\">\/\/ if the store is opening in &gt; 1 hour<\/span>\r\n  <span style=\"color: #bf4900\">if<\/span> (hh &gt;= <span style=\"color: #136d3d\">1<\/span>) {\r\n    <span style=\"color: #bf4900\">return<\/span> <span style=\"color: #a31515\">`Location will open in approximately <span style=\"color: #24292e\">${hh}<\/span> hour(s) and <span style=\"color: #24292e\">${mm}<\/span> minute(s).`<\/span> <span style=\"color: #6a737d\">\/\/ provide estimate in hours and minutes<\/span>\r\n  }\r\n  <span style=\"color: #6a737d\">\/\/ if the store is opening in &lt; 1 hour<\/span>\r\n  <span style=\"color: #bf4900\">if<\/span> (hh == <span style=\"color: #136d3d\">0<\/span>){\r\n    <span style=\"color: #bf4900\">return<\/span> <span style=\"color: #a31515\">`Location will be open soon (approximately <span style=\"color: #24292e\">${mm}<\/span> minutes).`<\/span> <span style=\"color: #6a737d\">\/\/ provide estimate in minutes only<\/span>\r\n  }\r\n}\r\n<span style=\"color: #6a737d\">\/\/ if the store is closed for the day<\/span>\r\n<span style=\"color: #bf4900\">if<\/span> (cst &gt;= close) {\r\n  <span style=\"color: #bf4900\">return<\/span> <span style=\"color: #a31515\">`This location has closed for today. Please check back tomorrow.`<\/span>\r\n}\r\n<\/code><\/pre>\n"},{"acf_fc_layout":"content","content":"<p><span data-contrast=\"auto\">In the above expression, <a href=\"https:\/\/developers.arcgis.com\/arcade\/function-reference\/date_functions\/#time\"><strong>Time()<\/strong><\/a> is used to create a variable indicating the current local time in Texas. When no\u00a0parameters are provided, this function returns the current time in the time zone of the <a href=\"https:\/\/developers.arcgis.com\/arcade\/profiles\/\">profile\u2019s execution context<\/a>. By default, this will be the time zone of your local device, or the web map time zone (if set). Because the web map time zone has already been set to Texas\u2019 time zone (America\/Chicago), the returned Time value doesn\u2019t require any additional conversion. If the web map didn&#8217;t have a time zone specified, you would need to use the <a href=\"https:\/\/developers.arcgis.com\/arcade\/function-reference\/date_functions\/#changetimezone\"><strong>ChangeTimeZone()<\/strong><\/a> function to convert the time value from local time to the desired time zone.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Once we know the store\u2019s operating hours, we can create a series of logical statements to determine if the store hasn\u2019t opened yet, is currently open, or has closed for the day based on the current local time. Using the <a href=\"https:\/\/developers.arcgis.com\/arcade\/function-reference\/date_functions\/#datediff\"><strong>DateDiff()<\/strong><\/a> function we can determine the difference between the current time and the store\u2019s operating hours and convert that result to an estimate in hours and minutes. Then, this value can be returned in a formatted string to display in our feature pop-ups, as seen below.\u00a0\u00a0<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2190872,"id":2190872,"title":"TimeOnlyCoffeeShop","filename":"TimeOnlyCoffeeShop.jpg","filesize":163362,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/TimeOnlyCoffeeShop.jpg","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade\/timeonlycoffeeshop","alt":"Pop-ups for coffee shops in Texas display the amount of time until a store opens or closes based on the local time in Texas.","author":"319692","description":"","caption":"Dynamic pop-ups for coffee shops in Texas, USA which use Arcade to display an estimate of the time until a store opens or closes depending on the current local time. ","name":"timeonlycoffeeshop","status":"inherit","uploaded_to":2190282,"date":"2023-12-11 18:20:45","modified":"2023-12-11 18:38:28","menu_order":0,"mime_type":"image\/jpeg","type":"image","subtype":"jpeg","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1674,"height":636,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/TimeOnlyCoffeeShop-213x200.jpg","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/TimeOnlyCoffeeShop.jpg","medium-width":464,"medium-height":176,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/TimeOnlyCoffeeShop.jpg","medium_large-width":768,"medium_large-height":292,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/TimeOnlyCoffeeShop.jpg","large-width":1674,"large-height":636,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/TimeOnlyCoffeeShop-1536x584.jpg","1536x1536-width":1536,"1536x1536-height":584,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/TimeOnlyCoffeeShop.jpg","2048x2048-width":1674,"2048x2048-height":636,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/TimeOnlyCoffeeShop-826x314.jpg","card_image-width":826,"card_image-height":314,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/TimeOnlyCoffeeShop.jpg","wide_image-width":1674,"wide_image-height":636}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<h3>2. Date only<\/h3>\n<p><span class=\"TextRun SCXW89957538 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">A similar method to the <\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">Tim<\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">e<\/span> <span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">o<\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">nly example can be used to visualize <\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">layers <\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">with <\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">Date <\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">o<\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">nly<\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\"> fields, so let&#8217;s dig in.<\/span><\/span><\/p>\n<p><span class=\"TextRun SCXW89957538 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"> <span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">As the weather cools and snow starts to fly in <\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">Canada\u2019s<\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\"> capital, residents and visitors look for some winter fun. Luckily, we&#8217;ve made a<\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">\u00a0map of winter attractions found across Ottawa. The winter attractions layer has <\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">Date <\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">o<\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">nly<\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\"> fields <\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">containing<\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\"> opening and closing dates for each attraction. A Date only field is used because some attractions, once open, are available 24\/7 so they have no associated time value. <\/span><\/span><span class=\"TextRun SCXW89957538 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">As you can see from the legend, the pins are colored based on these dates. The Arcade expression driving the layer style utilizes the <a href=\"https:\/\/developers.arcgis.com\/arcade\/function-reference\/date_functions\/#dateonly\"><strong>DateOnly()<\/strong><\/a> and <a href=\"https:\/\/developers.arcgis.com\/arcade\/function-reference\/date_functions\/#datediff\"><strong>DateDiff()<\/strong><\/a> functions to compare the current date to those stored for each <\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">attraction and<\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">\u00a0logically determines if the attraction is closed, opening soon, or open.<\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\"> This<\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\"> method<\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\"> gives viewers instant feedback on the availability of each attraction, providing them with more <\/span><\/span><span class=\"TextRun SCXW89957538 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">tim<\/span><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\">e<\/span><\/span><span class=\"TextRun SCXW89957538 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW89957538 BCX0\" data-ccp-parastyle=\"No Spacing\"> (pun intended) for their next winter adventure.<\/span><\/span><span class=\"EOP SCXW89957538 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2190322,"id":2190322,"title":"WinterAttractions","filename":"WinterAttractions.jpg","filesize":160550,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/WinterAttractions.jpg","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade\/winterattractions","alt":"Point locations of winter attractions colored as green (open), light green (opening soon), and red (closed).","author":"58731","description":"","caption":"Winter attraction locations visually categorized as open, opening soon, or closed using Arcade.","name":"winterattractions","status":"inherit","uploaded_to":2190282,"date":"2023-12-11 16:08:49","modified":"2023-12-11 18:53:32","menu_order":0,"mime_type":"image\/jpeg","type":"image","subtype":"jpeg","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1001,"height":632,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/WinterAttractions-213x200.jpg","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/WinterAttractions.jpg","medium-width":413,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/WinterAttractions.jpg","medium_large-width":768,"medium_large-height":485,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/WinterAttractions.jpg","large-width":1001,"large-height":632,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/WinterAttractions.jpg","1536x1536-width":1001,"1536x1536-height":632,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/WinterAttractions.jpg","2048x2048-width":1001,"2048x2048-height":632,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/WinterAttractions-736x465.jpg","card_image-width":736,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/WinterAttractions.jpg","wide_image-width":1001,"wide_image-height":632}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<pre><code style=\"color: #24292e;background: #fff;padding: 1em\"><span style=\"color: #6a737d\">\/\/ Variables containing the opening and closing days of the attraction <\/span>\r\n<span style=\"color: #bf4900\">var<\/span> openingDay = <span style=\"color: #0000b3\">$feature.openDate<\/span>\r\n<span style=\"color: #bf4900\">var<\/span> closingDay = <span style=\"color: #0000b3\">$feature.closingDate<\/span>\r\n\r\n<span style=\"color: #6a737d\">\/\/ Variable containing today's date in date only format <\/span>\r\n<span style=\"color: #bf4900\">var<\/span> todaysDate = <span style=\"color: #0000b3\">DateOnly()<\/span>\r\n\r\n<span style=\"color: #6a737d\">\/\/ Calculate the number of days between today and opening day <\/span>\r\n<span style=\"color: #bf4900\">var<\/span> difDays = <span style=\"color: #0000b3\">DateDiff<\/span>(openingDay, todaysDate, <span style=\"color: #032f62\">'days'<\/span>) \r\n\r\n<span style=\"color: #6a737d\">\/\/ Categorize feature based on date comparisons <\/span>\r\n<span style=\"color: #0000b3\">When<\/span>( \r\n  difDays &gt;= <span style=\"color: #136d3d\">15<\/span> || todaysDate &gt; closingDay, <span style=\"color: #032f62\">'Closed'<\/span>, \r\n  difDays &gt; <span style=\"color: #136d3d\">0<\/span> &amp;&amp; difDays &lt; <span style=\"color: #136d3d\">15<\/span>,<span style=\"color: #032f62\">'Opening soon'<\/span>, \r\n  <span style=\"color: #032f62\">'Open'<\/span> \r\n  ); \r\n<\/code><\/pre>\n"},{"acf_fc_layout":"content","content":"<h3>3. Timestamp offset<\/h3>\n<p><span data-contrast=\"auto\">If you&#8217;ve leveraged the new Timestamp offset field type in Map Viewer, you may have noticed that the value will display differently when returned in a pop-up or label. This difference is a result of the varying return types supported in different Arcade profiles.\u00a0<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559685&quot;:-20,&quot;335559737&quot;:-20,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">When a Timestamp offset field is used to label features, the datetime value will return by default as unformatted, static text. This means the date and time will not respect the <\/span><a href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/working-with-time-zones-in-map-viewer\/\"><span data-contrast=\"none\">web map time zone<\/span><\/a><span data-contrast=\"auto\">, and instead will display in ISO 8601 format with the incident time shown relative to UTC. As a result, when labeling with a Timestamp offset field, we recommend performing some additional formatting to ensure dates appear as expected. <\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559685&quot;:-20,&quot;335559737&quot;:-20,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">For example, the web map below displays locations of earthquakes with a magnitude equal to or greater than 8 on a global scale. The date and time each earthquake occurred is stored in a Timestamp offset field. Because our team is located on the west coast of the US, we&#8217;ve set the web map time zone to America\/Los Angeles and have labeled each point with the date and time the earthquake was reported. However, the text returned to the label is hard to read and doesn&#8217;t honor the time zone of our web map.<\/span><\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2190962,"id":2190962,"title":"timestampOffset","filename":"timestampOffset.jpg","filesize":279114,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/timestampOffset.jpg","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade\/timestampoffset","alt":"Earthquake point features are labelled according to the time the even was recorded.","author":"319692","description":"","caption":"Feature labels with a Timestamp Offset field are shown relative to UTC (left) and converted to Pacific Standard Time using Arcade (right).","name":"timestampoffset","status":"inherit","uploaded_to":2190282,"date":"2023-12-11 18:30:45","modified":"2023-12-11 18:41:06","menu_order":0,"mime_type":"image\/jpeg","type":"image","subtype":"jpeg","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1514,"height":814,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/timestampOffset-213x200.jpg","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/timestampOffset.jpg","medium-width":464,"medium-height":249,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/timestampOffset.jpg","medium_large-width":768,"medium_large-height":413,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/timestampOffset.jpg","large-width":1514,"large-height":814,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/timestampOffset.jpg","1536x1536-width":1514,"1536x1536-height":814,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/timestampOffset.jpg","2048x2048-width":1514,"2048x2048-height":814,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/timestampOffset-826x444.jpg","card_image-width":826,"card_image-height":444,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/timestampOffset.jpg","wide_image-width":1514,"wide_image-height":814}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p><span class=\"NormalTextRun SCXW236889869 BCX0\">With a few lines of Arcade, this problem is easily remedied!<a href=\"https:\/\/developers.arcgis.com\/arcade\/function-reference\/debugging_functions\/#getenvironment\"> <strong>GetEnvironment()<\/strong><\/a> and <a href=\"https:\/\/developers.arcgis.com\/arcade\/function-reference\/date_functions\/#changetimezone\"><strong>ChangeTimeZone() <\/strong><\/a><\/span><span class=\"NormalTextRun SpellingErrorV2Themed SCXW236889869 BCX0\">can be<\/span><span class=\"NormalTextRun SCXW236889869 BCX0\"> used to determine the web map time zone and convert the earthquake timestamp from UTC. <\/span><span class=\"NormalTextRun SpellingErrorV2Themed SCXW236889869 BCX0\">Once <\/span><span class=\"NormalTextRun SpellingErrorV2Themed SCXW236889869 BCX0\">the <\/span><span class=\"NormalTextRun SpellingErrorV2Themed SCXW236889869 BCX0\">timestamp is set to the correct time zo<\/span><span class=\"NormalTextRun SpellingErrorV2Themed SCXW236889869 BCX0\">ne, <\/span><a href=\"https:\/\/developers.arcgis.com\/arcade\/function-reference\/text_functions\/#text\"><strong><span class=\"NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW236889869 BCX0\">T<\/span><span class=\"NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW236889869 BCX0\">ext(<\/span><span class=\"NormalTextRun SCXW236889869 BCX0\">)<\/span><\/strong><\/a><span class=\"NormalTextRun SCXW236889869 BCX0\"> can be used to format how the label <\/span><span class=\"NormalTextRun SCXW236889869 BCX0\">is returned <\/span><span class=\"NormalTextRun SCXW236889869 BCX0\">to ensure <\/span><span class=\"NormalTextRun SCXW236889869 BCX0\">it is readable<\/span><span class=\"NormalTextRun SCXW236889869 BCX0\"> to viewers of our map.<\/span><\/p>\n"},{"acf_fc_layout":"content","content":"<pre><code style=\"color: #24292e;background: #fff;padding: 1em\"><span style=\"color: #6a737d\">\/\/ get the time zone of the web map  <\/span>\r\n<span style=\"color: #bf4900\">var<\/span> mapTZ = <span style=\"color: #0000b3\">GetEnvironment().timeZone<\/span>\r\n\r\n<span style=\"color: #6a737d\">\/\/ get timestamp of earthquake  <\/span>\r\n<span style=\"color: #bf4900\">var<\/span> quakeTime = <span style=\"color: #0000b3\">$feature.incident_recorded<\/span>\r\n\r\n<span style=\"color: #6a737d\">\/\/ Convert earthquake timestamp to the web map time zone (America\/Los Angeles) <\/span>\r\nquakeTime = <span style=\"color: #0000b3\">ChangeTimeZone<\/span>(quakeTime, mapTZ) \r\n\r\n<span style=\"color: #6a737d\">\/\/ Format the timestamp to be returned in the label <\/span>\r\nquakeTime = <span style=\"color: #0000b3\">Text<\/span>(quakeTime, <span style=\"color: #a31515\">'MMM DD, Y @ hh:mm:ss A ZZZZ'<\/span>) \r\n<span style=\"color: #bf4900\">return<\/span> quakeTime \r\n<\/code><\/pre>\n"},{"acf_fc_layout":"content","content":"<h2>Final thoughts<\/h2>\n<p><span class=\"TextRun SCXW42849128 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW42849128 BCX0\" data-ccp-parastyle=\"No Spacing\">We hope this blog has shed light on how you can <\/span><span class=\"NormalTextRun SCXW42849128 BCX0\" data-ccp-parastyle=\"No Spacing\">leverage<\/span><span class=\"NormalTextRun SCXW42849128 BCX0\" data-ccp-parastyle=\"No Spacing\"> Arcade to <\/span><span class=\"NormalTextRun SCXW42849128 BCX0\" data-ccp-parastyle=\"No Spacing\">work with and <\/span><span class=\"NormalTextRun SCXW42849128 BCX0\" data-ccp-parastyle=\"No Spacing\">manipulate<\/span> <span class=\"NormalTextRun SCXW42849128 BCX0\" data-ccp-parastyle=\"No Spacing\">temporal data. <\/span><span class=\"NormalTextRun SCXW42849128 BCX0\" data-ccp-parastyle=\"No Spacing\">The examples we walked through only scratch the surface of <\/span><span class=\"NormalTextRun SCXW42849128 BCX0\" data-ccp-parastyle=\"No Spacing\">wha<\/span><span class=\"NormalTextRun SCXW42849128 BCX0\" data-ccp-parastyle=\"No Spacing\">t\u2019s<\/span><span class=\"NormalTextRun SCXW42849128 BCX0\" data-ccp-parastyle=\"No Spacing\"> possible, so we encourage you to take what <\/span><span class=\"NormalTextRun SCXW42849128 BCX0\" data-ccp-parastyle=\"No Spacing\">you\u2019ve<\/span><span class=\"NormalTextRun SCXW42849128 BCX0\" data-ccp-parastyle=\"No Spacing\"> learned here and run with it. If <\/span><span class=\"NormalTextRun SCXW42849128 BCX0\" data-ccp-parastyle=\"No Spacing\">you\u2019re<\/span><span class=\"NormalTextRun SCXW42849128 BCX0\" data-ccp-parastyle=\"No Spacing\"> interested in learning more about managing datetime data, check out <\/span><\/span><a class=\"Hyperlink SCXW42849128 BCX0\" href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/4-tips-to-level-up-your-date-and-time-data-management\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"TextRun Underlined SCXW42849128 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW42849128 BCX0\" data-ccp-charstyle=\"Hyperlink\">Emily\u2019s tips<\/span><\/span><\/a><span class=\"TextRun SCXW42849128 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW42849128 BCX0\" data-ccp-parastyle=\"No Spacing\"> and the <\/span><\/span><a class=\"Hyperlink SCXW42849128 BCX0\" href=\"https:\/\/developers.arcgis.com\/arcade\/guide\/release-notes\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"TextRun Underlined SCXW42849128 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW42849128 BCX0\" data-ccp-charstyle=\"Hyperlink\">Arcade release notes<\/span><\/span><\/a><span class=\"TextRun SCXW42849128 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW42849128 BCX0\" data-ccp-parastyle=\"No Spacing\">.<\/span><\/span><span class=\"EOP SCXW42849128 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n"}],"related_articles":"","card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/Card-2.jpg","wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/Banner-1.jpg"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v25.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Get the most out of your temporal data with Arcade<\/title>\n<meta name=\"description\" content=\"Leveraging Arcade with spatio-temporal data makes it easier to uncover new patterns in your dataset and produce informative web maps.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Get the most out of your temporal data with Arcade\" \/>\n<meta property=\"og:description\" content=\"Leveraging Arcade with spatio-temporal data makes it easier to uncover new patterns in your dataset and produce informative web maps.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade\" \/>\n<meta property=\"og:site_name\" content=\"ArcGIS Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/esrigis\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-11T20:29:02+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@ESRI\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade\"},\"author\":{\"name\":\"Lauren Ballantyne\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/1cc4439ee11a7261ab467b4a8212a066\"},\"headline\":\"Get the most out of your temporal data with Arcade\",\"datePublished\":\"2023-12-21T13:00:03+00:00\",\"dateModified\":\"2024-11-11T20:29:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade\"},\"wordCount\":10,\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"keywords\":[\"arcade\",\"dates\"],\"articleSection\":[\"Arcade\",\"Mapping\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade\",\"name\":\"Get the most out of your temporal data with Arcade\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\"},\"datePublished\":\"2023-12-21T13:00:03+00:00\",\"dateModified\":\"2024-11-11T20:29:02+00:00\",\"description\":\"Leveraging Arcade with spatio-temporal data makes it easier to uncover new patterns in your dataset and produce informative web maps.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.esri.com\/arcgis-blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get the most out of your temporal data with Arcade\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"name\":\"ArcGIS Blog\",\"description\":\"Get insider info from Esri product teams\",\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\",\"name\":\"Esri\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"width\":400,\"height\":400,\"caption\":\"Esri\"},\"image\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/esrigis\/\",\"https:\/\/x.com\/ESRI\",\"https:\/\/www.linkedin.com\/company\/5311\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/1cc4439ee11a7261ab467b4a8212a066\",\"name\":\"Lauren Ballantyne\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2020\/07\/IMG_0214-213x200.jpg\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2020\/07\/IMG_0214-213x200.jpg\",\"caption\":\"Lauren Ballantyne\"},\"description\":\"Lauren Ballantyne is a Product Engineer on the ArcGIS Online team and has a background in environmental science and conservation ecology. Her feature areas include Map Viewer, Arcade, and hosted feature layer views. Lauren is passionate about developing intuitive tools that help create engaging, informative, and data-rich web maps.\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/author\/lballantyne\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Get the most out of your temporal data with Arcade","description":"Leveraging Arcade with spatio-temporal data makes it easier to uncover new patterns in your dataset and produce informative web maps.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade","og_locale":"en_US","og_type":"article","og_title":"Get the most out of your temporal data with Arcade","og_description":"Leveraging Arcade with spatio-temporal data makes it easier to uncover new patterns in your dataset and produce informative web maps.","og_url":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade","og_site_name":"ArcGIS Blog","article_publisher":"https:\/\/www.facebook.com\/esrigis\/","article_modified_time":"2024-11-11T20:29:02+00:00","twitter_card":"summary_large_image","twitter_site":"@ESRI","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade#article","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade"},"author":{"name":"Lauren Ballantyne","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/1cc4439ee11a7261ab467b4a8212a066"},"headline":"Get the most out of your temporal data with Arcade","datePublished":"2023-12-21T13:00:03+00:00","dateModified":"2024-11-11T20:29:02+00:00","mainEntityOfPage":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade"},"wordCount":10,"publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"keywords":["arcade","dates"],"articleSection":["Arcade","Mapping"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade","url":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade","name":"Get the most out of your temporal data with Arcade","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#website"},"datePublished":"2023-12-21T13:00:03+00:00","dateModified":"2024-11-11T20:29:02+00:00","description":"Leveraging Arcade with spatio-temporal data makes it easier to uncover new patterns in your dataset and produce informative web maps.","breadcrumb":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.esri.com\/arcgis-blog\/"},{"@type":"ListItem","position":2,"name":"Get the most out of your temporal data with Arcade"}]},{"@type":"WebSite","@id":"https:\/\/www.esri.com\/arcgis-blog\/#website","url":"https:\/\/www.esri.com\/arcgis-blog\/","name":"ArcGIS Blog","description":"Get insider info from Esri product teams","publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization","name":"Esri","url":"https:\/\/www.esri.com\/arcgis-blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","width":400,"height":400,"caption":"Esri"},"image":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/esrigis\/","https:\/\/x.com\/ESRI","https:\/\/www.linkedin.com\/company\/5311\/"]},{"@type":"Person","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/1cc4439ee11a7261ab467b4a8212a066","name":"Lauren Ballantyne","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2020\/07\/IMG_0214-213x200.jpg","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2020\/07\/IMG_0214-213x200.jpg","caption":"Lauren Ballantyne"},"description":"Lauren Ballantyne is a Product Engineer on the ArcGIS Online team and has a background in environmental science and conservation ecology. Her feature areas include Map Viewer, Arcade, and hosted feature layer views. Lauren is passionate about developing intuitive tools that help create engaging, informative, and data-rich web maps.","url":"https:\/\/www.esri.com\/arcgis-blog\/author\/lballantyne"}]}},"text_date":"December 21, 2023","author_name":"Multiple Authors","author_page":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/get-the-most-out-of-your-temporal-data-with-arcade","custom_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/12\/Banner-1.jpg","primary_product":"ArcGIS Online","tag_data":[{"term_id":32551,"name":"arcade","slug":"arcade","term_group":0,"term_taxonomy_id":32551,"taxonomy":"post_tag","description":"","parent":0,"count":113,"filter":"raw"},{"term_id":661121,"name":"dates","slug":"dates","term_group":0,"term_taxonomy_id":661121,"taxonomy":"post_tag","description":"","parent":0,"count":2,"filter":"raw"}],"category_data":[{"term_id":777102,"name":"Arcade","slug":"arcade","term_group":0,"term_taxonomy_id":777102,"taxonomy":"category","description":"","parent":0,"count":98,"filter":"raw"},{"term_id":22941,"name":"Mapping","slug":"mapping","term_group":0,"term_taxonomy_id":22941,"taxonomy":"category","description":"","parent":0,"count":2683,"filter":"raw"}],"product_data":[{"term_id":36551,"name":"ArcGIS Online","slug":"arcgis-online","term_group":0,"term_taxonomy_id":36551,"taxonomy":"product","description":"","parent":0,"count":2419,"filter":"raw"}],"primary_product_link":"https:\/\/www.esri.com\/arcgis-blog\/?s=#&products=arcgis-online","_links":{"self":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/2190282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/users\/58731"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/comments?post=2190282"}],"version-history":[{"count":0,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/2190282\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/media?parent=2190282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/categories?post=2190282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/tags?post=2190282"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/industry?post=2190282"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/product?post=2190282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}