{
  "version": "1.0",
  "timestamp": "2025-05-09T13:12:32.780Z",
  "objects": [
    {
      "name": "tDay",
      "id": "1",
      "type": "field",
      "position": {
        "left": "355px",
        "top": "194px",
        "width": "200px",
        "height": "40px"
      },
      "script": "",
      "properties": {
        "textAlign": "center",
        "scrollable": false,
        "locktext": false,
        "multiline": false,
        "autotab": false,
        "widemargins": false,
        "sharedtext": false,
        "rotation": 0,
        "textSize": 24,
        "vScroll": 0,
        "hScroll": 0,
        "visibleLines": "1",
        "visiblelines": "1",
        "showborder": true,
        "backgroundColor": "0,0,0",
        "textStyle": "Bold",
        "fontSize": "25",
        "borderColor": "rgb(0, 0, 0)",
        "borderWidth": "1px",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "fontWeight": "700",
        "foregroundColor": "255,0,0"
      },
      "content": "30"
    },
    {
      "name": "tMonth",
      "id": "2",
      "type": "field",
      "position": {
        "left": "565px",
        "top": "194px",
        "width": "200px",
        "height": "40px"
      },
      "script": "",
      "properties": {
        "textAlign": "center",
        "scrollable": false,
        "locktext": false,
        "multiline": false,
        "autotab": false,
        "widemargins": false,
        "sharedtext": false,
        "rotation": 0,
        "textSize": 24,
        "vScroll": 0,
        "hScroll": 0,
        "visibleLines": "1",
        "visiblelines": "1",
        "showborder": true,
        "backgroundColor": "0,0,0",
        "textStyle": "Bold",
        "borderColor": "rgb(0, 0, 0)",
        "borderWidth": "1px",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "fontWeight": "700",
        "foregroundColor": "255,0,0"
      },
      "content": "10"
    },
    {
      "name": "tYear",
      "id": "3",
      "type": "field",
      "position": {
        "left": "773px",
        "top": "194px",
        "width": "200px",
        "height": "40px"
      },
      "script": "",
      "properties": {
        "textAlign": "center",
        "scrollable": false,
        "locktext": false,
        "multiline": false,
        "autotab": false,
        "widemargins": false,
        "sharedtext": false,
        "rotation": 0,
        "textSize": 24,
        "vScroll": 0,
        "hScroll": 0,
        "visibleLines": "1",
        "visiblelines": "1",
        "showborder": true,
        "backgroundColor": "0,0,0",
        "textStyle": "Bold",
        "borderColor": "rgb(0, 0, 0)",
        "borderWidth": "1px",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "fontWeight": "700",
        "foregroundColor": "255,0,0"
      },
      "content": "1979"
    },
    {
      "name": "Yesterday's date",
      "id": "4",
      "type": "button",
      "position": {
        "left": "12px",
        "top": "124px",
        "width": "151px",
        "height": "30px"
      },
      "script": "on mouseup\n   set the itemdelimiter to \",\"\n   put the seconds into tString\n   convert tString to dateitems\n   subtract 1 from item 3 of tString\n   convert tString to the date\n   clear message box -- we just clear any previous output\n   put tString\nend mouseup",
      "properties": {
        "visible": "true",
        "textSize": 16,
        "backgroundColor": "rgb(240, 240, 240)",
        "borderColor": "rgb(153, 153, 153)",
        "borderWidth": "1px",
        "foregroundColor": "rgb(0, 0, 0)",
        "textAlign": "start",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "textStyle": "normal",
        "fontWeight": "400"
      }
    },
    {
      "name": "Day of week for a given date",
      "id": "5",
      "type": "button",
      "position": {
        "left": "706px",
        "top": "248px",
        "width": "265px",
        "height": "30px"
      },
      "script": "on mouseup\n   -- script to return the day of the week for any given date after 1/1/1970\n   put the seconds into tDateWhen\n   convert tDateWhen to dateitems\n   put fld \"tDay\" into item 3 of tDateWhen\n   put fld \"tMonth\" into item 2 of tDateWhen\n   put fld \"tYear\" into item 1 of tDateWhen\n   convert tDateWhen to dateitems\n   convert tDateWhen to the long date\n   clear message box -- we just clear any previous output\n   put item 1 of tDateWhen\nend mouseup\n",
      "properties": {
        "visible": "true",
        "textSize": 16,
        "backgroundColor": "rgb(240, 240, 240)",
        "borderColor": "rgb(153, 153, 153)",
        "borderWidth": "1px",
        "foregroundColor": "rgb(0, 0, 0)",
        "textAlign": "start",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "textStyle": "normal",
        "fontWeight": "400"
      }
    },
    {
      "name": "The date, a year ago",
      "id": "6",
      "type": "button",
      "position": {
        "left": "13px",
        "top": "192px",
        "width": "219px",
        "height": "30px"
      },
      "script": "on mouseup\n   clear message box -- we just clear any previous output   \n   put the seconds into tCurDate\n   convert tCurDate to dateitems -- we now have a date items variable\n   put tCurDate into tYearAgo -- make a variable for a year ago calculation\n   set the itemdelimiter to \",\"\n   subtract 1 from item 1 of tYearAgo -- subtract 1 from the year\n   convert tYearAgo to the date\n   put \"The short date, a year ago:\" && tYearAgo\n   -- show it in a long date format\n   convert tYearAgo to the long date\n   put \"The long date, a year ago:\" && tYearAgo -- reusing the variable\nend mouseup\n",
      "properties": {
        "visible": "true",
        "textSize": 16,
        "backgroundColor": "rgb(240, 240, 240)",
        "borderColor": "rgb(153, 153, 153)",
        "borderWidth": "1px",
        "foregroundColor": "rgb(0, 0, 0)",
        "textAlign": "start",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "textStyle": "normal",
        "fontWeight": "400"
      }
    },
    {
      "name": "stacktitle",
      "id": "7",
      "type": "field",
      "position": {
        "left": "8.5px",
        "top": "6px",
        "width": "575px",
        "height": "50px"
      },
      "script": "on tsetTitle\n   put line 1 of me into tNewTitle\n   put tNewTitle\n   -- put line 1 of field \"stacktitle\" into tNewTitle\n   set the title to tNewTitle\nend tsetTitle\n\non mousedown\n   send tsetTitle to me\nend mousedown",
      "properties": {
        "textAlign": "left",
        "scrollable": false,
        "locktext": true,
        "multiline": false,
        "autotab": false,
        "widemargins": false,
        "sharedtext": false,
        "rotation": 0,
        "textSize": 24,
        "vScroll": 0,
        "hScroll": 0,
        "visibleLines": "1",
        "visiblelines": "1",
        "showborder": false,
        "backgroundColor": "transparent",
        "textStyle": "Bold",
        "borderColor": "rgb(0, 0, 0)",
        "borderWidth": "0px",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "fontWeight": "700",
        "foregroundColor": "rgb(0, 0, 0)"
      },
      "content": "Webtalk date conversion tests"
    },
    {
      "name": "add 3 days to today's date",
      "id": "8",
      "type": "button",
      "position": {
        "left": "12px",
        "top": "158px",
        "width": "309px",
        "height": "30px"
      },
      "script": "on mousedown\n   set the itemdelimiter to \",\"\n   put the seconds into tString\n   convert tString to dateitems\n   put item 3 of tString +3 into item 3 of tString\n   convert tString to the long date\n   clear message box -- we just clear any previous output\n   put tString\nend mousedown",
      "properties": {
        "visible": "true",
        "textSize": 16,
        "backgroundColor": "rgb(240, 240, 240)",
        "borderColor": "rgb(153, 153, 153)",
        "borderWidth": "1px",
        "foregroundColor": "rgb(0, 0, 0)",
        "textAlign": "start",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "textStyle": "normal",
        "fontWeight": "400"
      }
    },
    {
      "name": "add 3 days to a pre-specified date",
      "id": "9",
      "type": "button",
      "position": {
        "left": "13px",
        "top": "226px",
        "width": "308px",
        "height": "30px"
      },
      "script": "on mousedown\n   set the itemdelimiter to \",\"\n   put \"2025,4,28,7,50,40,6\" into tString\n   put item 3 of tString +3 into item 3 of tString\n   convert tString to the long date\n   clear message box -- we just clear any previous output\n   put tString\nend mousedown",
      "properties": {
        "visible": "true",
        "textSize": 16,
        "backgroundColor": "rgb(240, 240, 240)",
        "borderColor": "rgb(153, 153, 153)",
        "borderWidth": "1px",
        "foregroundColor": "rgb(0, 0, 0)",
        "textAlign": "start",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "textStyle": "normal",
        "fontWeight": "400"
      }
    },
    {
      "name": "short date",
      "id": "10",
      "type": "button",
      "position": {
        "left": "11.5px",
        "top": "90px",
        "width": "151px",
        "height": "30px"
      },
      "script": "on mousedown\n   clear message box -- we just clear any previous output   \n   put the date\nend mousedown",
      "properties": {
        "visible": "true",
        "textSize": 16,
        "backgroundColor": "rgb(240, 240, 240)",
        "borderColor": "rgb(153, 153, 153)",
        "borderWidth": "1px",
        "foregroundColor": "rgb(0, 0, 0)",
        "textAlign": "start",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "textStyle": "normal",
        "fontWeight": "400"
      }
    },
    {
      "name": "long date",
      "id": "11",
      "type": "button",
      "position": {
        "left": "176px",
        "top": "90px",
        "width": "154px",
        "height": "30px"
      },
      "script": "on mousedown\n   clear message box -- we just clear any previous output   \n   put the long date\nend mousedown",
      "properties": {
        "visible": "true",
        "textSize": 16,
        "backgroundColor": "rgb(240, 240, 240)",
        "borderColor": "rgb(153, 153, 153)",
        "borderWidth": "1px",
        "foregroundColor": "rgb(0, 0, 0)",
        "textAlign": "start",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "textStyle": "normal",
        "fontWeight": "400"
      }
    },
    {
      "name": "card",
      "type": "card",
      "script": "",
      "properties": {}
    }
  ]
}