addedInput schema / additionalProperties
Added value: +false
addedInput schema / properties / day
Added value: +{
+ "description": "Base-date day 1-31; must be a real calendar date. Required when operation is addDuration or subtractDuration.",
+ "maximum": 31,
+ "minimum": 1,
+ "type": "integer"
+}
addedInput schema / properties / duration
Added value: +{
+ "additionalProperties": false,
+ "description": "Signed duration to apply. Required when operation is addDuration or subtractDuration. Each component defaults to 0 and may be negative.",
+ "properties": {
+ "days": {
+ "default": 0,
+ "description": "Whole days to add/subtract (signed).",
+ "type": "integer"
+ },
+ "months": {
+ "default": 0,
+ "description": "Whole months to add/subtract, month-clamped (signed).",
+ "type": "integer"
+ },
+ "weeks": {
+ "default": 0,
+ "description": "Whole weeks (each 7 days) to add/subtract (signed).",
+ "type": "integer"
+ },
+ "years": {
+ "default": 0,
+ "description": "Whole years to add/subtract (signed).",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+}
addedInput schema / properties / fromDay / description
Added value: +"Start-date day 1-31; must be a real calendar date. Required when operation is diff."
addedInput schema / properties / fromDay / maximum
Added value: +31
addedInput schema / properties / fromDay / minimum
Added value: +1
addedInput schema / properties / fromMonth / description
Added value: +"Start-date month 1-12. Required when operation is diff."
addedInput schema / properties / fromMonth / maximum
Added value: +12
addedInput schema / properties / fromMonth / minimum
Added value: +1
addedInput schema / properties / fromYear / description
Added value: +"Start-date year (proleptic Gregorian). Required when operation is diff."
addedInput schema / properties / fromYear / maximum
Added value: +9999
addedInput schema / properties / fromYear / minimum
Added value: +-9999
addedInput schema / properties / month
Added value: +{
+ "description": "Base-date month 1-12. Required when operation is addDuration or subtractDuration.",
+ "maximum": 12,
+ "minimum": 1,
+ "type": "integer"
+}
addedInput schema / properties / operation / description
Added value: +"\"diff\": gap between two dates (needs from* and to*). \"addDuration\"/\"subtractDuration\": apply duration to a base date (needs year/month/day and duration)."
addedInput schema / properties / operation / enum
Added value: +[
+ "diff",
+ "addDuration",
+ "subtractDuration"
+]
addedInput schema / properties / toDay / description
Added value: +"End-date day 1-31. Required when operation is diff."
addedInput schema / properties / toDay / maximum
Added value: +31
addedInput schema / properties / toDay / minimum
Added value: +1
addedInput schema / properties / toMonth / description
Added value: +"End-date month 1-12. Required when operation is diff."
addedInput schema / properties / toMonth / maximum
Added value: +12
addedInput schema / properties / toMonth / minimum
Added value: +1
addedInput schema / properties / toYear / description
Added value: +"End-date year. Required when operation is diff."
addedInput schema / properties / toYear / maximum
Added value: +9999
addedInput schema / properties / toYear / minimum
Added value: +-9999
addedInput schema / properties / year
Added value: +{
+ "description": "Base-date year. Required when operation is addDuration or subtractDuration.",
+ "maximum": 9999,
+ "minimum": -9999,
+ "type": "integer"
+}
changedInput schema / required
Previous value: -[
- "operation",
- "fromYear",
- "fromMonth",
- "fromDay",
- "toYear",
- "toMonth",
- "toDay"
-]New value: +[
+ "operation"
+]
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "data": {
+ "description": "Result payload; shape depends on operation.",
+ "properties": {
+ "absolute": {
+ "description": "Absolute-magnitude totals over the interval (diff only).",
+ "properties": {
+ "businessDays": {
+ "description": "Mon-Fri days inclusive between the dates; no holiday exclusion.",
+ "type": "integer"
+ },
+ "totalDays": {
+ "description": "Total whole days between the two dates.",
+ "type": "integer"
+ },
+ "totalHours": {
+ "description": "Total hours (totalDays * 24).",
+ "type": "integer"
+ },
+ "totalMinutes": {
+ "description": "Total minutes.",
+ "type": "integer"
+ },
+ "totalSeconds": {
+ "description": "Total seconds.",
+ "type": "integer"
+ },
+ "totalWeeks": {
+ "description": "Total whole weeks (floor of totalDays/7).",
+ "type": "integer"
+ },
+ "weeksAndDays": {
+ "description": "Weeks plus remainder days as weeks and days fields.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "calendar": {
+ "description": "Non-negative calendar gap (diff only).",
+ "properties": {
+ "days": {
+ "description": "Remaining days after months.",
+ "type": "integer"
+ },
+ "months": {
+ "description": "Remaining whole months after years (0-11).",
+ "type": "integer"
+ },
+ "years": {
+ "description": "Whole years in the calendar gap.",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "day": {
+ "description": "Resulting day of month (addDuration/subtractDuration only).",
+ "type": "integer"
+ },
+ "dayOfWeek": {
+ "description": "Resulting weekday name (addDuration/subtractDuration only).",
+ "type": "string"
+ },
+ "direction": {
+ "description": "Orientation of the two dates: forward (from<to), backward (from>to), or same (diff only).",
+ "enum": [
+ "forward",
+ "backward",
+ "same"
+ ],
+ "type": "string"
+ },
+ "from": {
+ "description": "Start date as year/month/day/isoDate/dayOfWeek (diff only).",
+ "type": "object"
+ },
+ "isoDate": {
+ "description": "Resulting date as YYYY-MM-DD (addDuration/subtractDuration only).",
+ "type": "string"
+ },
+ "month": {
+ "description": "Resulting month 1-12 (addDuration/subtractDuration only).",
+ "type": "integer"
+ },
+ "to": {
+ "description": "End date as year/month/day/isoDate/dayOfWeek (diff only).",
+ "type": "object"
+ },
+ "year": {
+ "description": "Resulting year (addDuration/subtractDuration only).",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "operation": {
+ "description": "The operation that was run, echoed back (diff, addDuration, or subtractDuration).",
+ "type": "string"
+ }
+ },
+ "type": "object"
+}