{"uid":"cap_74KhMS09fA5n4IRQ_DyX-","slug":"pennyrail-time-difference-calculator-seconds-10ce7d2b","name":"PennyRail Time Difference Calculator (Seconds)","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/f/time.diff-seconds","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","description":"{from,to}"}}},"responseSchema":{"type":"object","required":["operation","result"],"properties":{"result":{},"operation":{"type":"string"}},"additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lD7aeCd65w9hovW3G4sTg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the difference in seconds between two datetime values","exampleAgentPrompt":"How many seconds are there between 2025-01-15T08:00:00Z and 2025-01-15T09:45:30Z?","exampleUseCases":[{"title":"Elapsed time for a process log","prompt":"I have a process that started at 2025-06-01T10:00:00Z and ended at 2025-06-01T10:47:23Z — how many seconds did it run for?"},{"title":"Countdown to a scheduled event","prompt":"How many seconds are left between right now, 2025-06-10T14:00:00Z, and my meeting at 2025-06-10T16:30:00Z?"},{"title":"SLA breach detection in seconds","prompt":"My SLA window is 3600 seconds — tell me the exact number of seconds between ticket creation at 2025-05-20T09:00:00Z and resolution at 2025-05-20T10:05:00Z so I can check if we breached it."}],"resultDescription":"Returns a JSON object with an 'operation' string describing the computation performed and a 'result' field containing the numeric difference in seconds between the two provided datetime values.","failureModes":["Missing 'from' or 'to' fields in the input object returns a validation error","Malformed or unparseable datetime strings may cause a processing error","Reversed date order (to before from) may return a negative value or error","Payment failure (insufficient USDC balance) results in a 402 response before processing"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call microservice to compute time differences in seconds without standing up your own date math logic. It is well-suited for agent workflows that require precise elapsed-time calculations as an atomic step, billed at fractions of a cent via x402 micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:10:23.700Z","isFirstParty":false}