Skip to content

Document the AddTimeSpan date filter - #3328

Closed
NickJosevski wants to merge 1 commit into
mainfrom
nj/date-timespan
Closed

Document the AddTimeSpan date filter#3328
NickJosevski wants to merge 1 commit into
mainfrom
nj/date-timespan

Conversation

@NickJosevski

Copy link
Copy Markdown
Contributor

Variant of #3326, documenting the single-filter shape from OctopusDeploy/Octostache#125 instead of separate AddHours/AddDays.

Changes

  • variable-filters.mdAddTimeSpan row in the date-filters table, plus an ### AddTimeSpan section.
  • variable-substitutions.mdx — added to the flat filter list.

Emphasis

The format is stated explicitly as {days}.{hours}:{minutes}:{seconds} in a code block, and linked to the .NET TimeSpan.Parse docs.

A warning callout covers the trap directly — 48:00:00 is 48 days, not 48 hours — with a table showing the 23:00:0024:00:00 flip and the fact that 24:01:02 reads 02 as minutes rather than seconds. It ends by pointing at the correct way to say 48 hours: "2.00:00:00".

A second callout covers quoting: the day form contains a ., which isn't valid in an unquoted filter argument.

Worked examples include 2 days ("2.00:00:00") and 2.5 days ("2.12:00:00", ie 60 hours), both with the resulting output.

The ServiceNow change-window example carries over, along with the warning that Octopus.Task.QueueTime is queue time rather than execution start.

Second commit

Fixes pre-existing markdownlint violations in variable-filters.md — misaligned table pipes, asterisk list markers, hard tabs. These already fail on main; CI lints only changed files, so touching the page surfaces them. Table content is unchanged, only padding.

Do not merge before OctopusDeploy/Octostache#125 ships.

🤖 Generated with Claude Code

Spells out the {days}.{hours}:{minutes}:{seconds} format, links to the
.NET TimeSpan.Parse docs, and calls out that 48:00:00 is 48 days rather
than 48 hours because the leading field stops meaning hours above 23.

Also fixes pre-existing markdownlint violations in this file, which CI
surfaces because it lints only changed files. Table content is unchanged,
only cell padding and separator widths.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@team-marketing-branch-protections

Copy link
Copy Markdown

Pull request environment is available at https://stoctodocspr3328.z22.web.core.windows.net.

You can view the ephemeral environment status in Octopus Deploy.

This environment will be automatically deprovisioned when the pull request is closed, or after 7 days of inactivity.

@NickJosevski

Copy link
Copy Markdown
Contributor Author

Closing — going with the AddHours/AddDays shape in OctopusDeploy/Octostache#124 instead. The matching PR for that variant stays open.

@NickJosevski
NickJosevski deleted the nj/date-timespan branch August 10, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants