- INTEGER
- VALIDATION
- LOGIC
- HUMAN
Our technology reaches across leading technology and enterprise teams.

Short answer
How do I turn ISO 8601 durations into seconds?
Your agent uses the calculate_total_seconds tool to parse the string and return a single integer. This lets you use the result in any mathematical calculation or logic flow. You'll see the exact breakdown of how the conversion works below.
The results of the conversion.
Where the data lands.
Your agent processes the input and delivers these specific outcomes.
INTEGER
Total seconds value
The tool returns a clean integer representing the full duration. You can use this number immediately for math.
VALIDATION
Format verification
Your agent checks if the string follows the ISO 8601 standard. It catches errors in the duration format before processing.
LOGIC
Ready for math
The output is a raw number, not a string. This makes it easy to add, subtract, or compare against other timestamps.
HUMAN
Manual review
You decide if the converted integer matches your expected business logic or if the input string was malformed.
The workflow
What your agent does when a duration string arrives.
Your agent handles the heavy lifting of parsing the complex string format.
String parsing
Your agent reads the ISO 8601 string to identify the components like years, months, or days.
calculate_total_secondsComponent conversion
Each part of the duration is converted into its equivalent value in seconds.
calculate_total_secondsSummation
Your agent adds all the individual second values together into one final number.
calculate_total_secondsOutput delivery
The final integer is passed back to your chat interface for use.
calculate_total_seconds
Vinkius Agentic Execution Platform
State the outcome. Agents take it from there.
You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.
Run it in Vinkius
Agents carry the task to the end
Agents execute ISO 8601 Duration Parser tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.
Take it to any compatible AI
One connection, any client
Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.
Spaces
One Space per activity
A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.
Limits
Autonomy inside limits you set
Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.
Record
All steps, on the record
Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.
Models
Included in your plan
A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.
Try it
Copy these to start.
Use these prompts to trigger the conversion immediately.
Starting points
Swap the bracketed text with your actual duration strings or data sources.
ISO 8601 Duration Parser Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_2WcnUBWGMCBZlVpBB9cXYGlf2wdTc8ndAB28ZT4s/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat, ISO 8601 Duration Parser capabilities are ready to use.
{
"mcpServers": {
"iso-8601-duration-parser-mcp": {
"url": "https://edge.vinkius.com/vk_preview_2WcnUBWGMCBZlVpBB9cXYGlf2wdTc8ndAB28ZT4s/mcp"
}
}
}- 01
Convert the duration 'PT1H30M' to total seconds.
- 02
Take the duration string from this spreadsheet cell and turn it into an integer.
- 03
Calculate the total seconds for 'P3DT4H' and tell me the result.
- 04
Check this list of ISO 8601 durations in my text file and convert them all to seconds.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect ISO 8601 Duration Parser once, then ask.
Click the link to connect the MCP to your client. Your credentials stay encrypted, and you can start using the tools right away.
Connect ISO 8601 Duration Parser to your agentFAQ
How this task behaves.
- 01
Can your agent convert non-ISO 8601 strings?
No. The tool specifically requires strings that follow the ISO 8601 standard to function.
- 02
Will your agent change my original data?
No. Your agent only reads the strings you provide and returns a new integer value. It does not modify your source files.
- 03
Does it handle fractional seconds?
Yes, the tool can process durations that include fractional components.
- 04
Can your agent perform math on the result?
Yes. Since the output is a standard integer, you can ask your agent to add or multiply that number immediately.
- 05
Does your agent store my duration strings?
No. The MCP processes the data in real time and does not save your input strings.
More questions about ISO 8601 Duration Parser? The Connector page answers them. See everything the ISO 8601 Duration Parser Connector can do
Building with AI? Ship this whole workflow in your product.
Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from ISO 8601 Duration Parser to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.
Explore Vinkius ConnectTypeScript · Python · Java · Go · C# · PHP · Rust
- 01
Your customers bring their own keys.
Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.
- 02
Whole catalog, kept current.
ISO 8601 Duration Parser plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.
- 03
Any agent, any model.
Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.
Connect ISO 8601 Duration Parser to Claude, Cursor, ChatGPT & more
From idea to done
See what gets done when the agents take over the busywork
Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.









