feat(executiontime): add ISO 8601 duration format#7298
feat(executiontime): add ISO 8601 duration format#7298JanDeDobbeleer merged 1 commit intoJanDeDobbeleer:nextfrom
Conversation
|
Hi @JanDeDobbeleer 👋 Just to be clear: this isn't some random AI-generated contribution—it's a genuine feature I need and wanted to propose instead of just requesting." 🙂 I currently use a custom template to achieve this goal, but I figure I can't be the only one with this need. Here is my current template: |
|
@dohzya question though, what's the use-case here for |
|
Oh, I prefer this format whatever the duration, and other formats also support up to hours 🙂 Yes, sessions of vim or claude-code can take hours, even days. For instance, I tend to put my work laptop to hibernation instead of shutting it down during the weekend, without stopping my claude-code sessions first. I followed what other formats do by sticking to |
6a67260 to
85091a8
Compare
5d989ca to
6b77b5d
Compare
Add iso8601 and iso8601ms styles for execution time display using ISO 8601 duration format (PT[n]H[n]M[n]S). The iso8601 style rounds to nearest second, while iso8601ms preserves milliseconds precision. Co-authored-by: Claude <noreply@anthropic.com>
6b77b5d to
7865b3f
Compare
|
@all-contributors please add @dohzya for code,doc This is pure magic 🪄! @holopin-bot @dohzya wizard |
|
Congratulations @dohzya, the maintainer of this repository has issued you a badge! Here it is: https://holopin.io/claim/cmmrj6rue0001jp04761c0kmf This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account. |
|
I've put up a pull request to add @dohzya! 🎉 |
Prerequisites
Description
Adds two new duration styles for the
executiontimesegment using the ISO 8601 duration format:iso8601: Displays time with second precision (e.g.,PT3M2S)iso8601ms: Displays time with millisecond precision (e.g.,PT3M2.1S)This follows the same pattern as existing formats like
galvestonandgalvestonms.Format Examples
Test Plan
Configuration Example
{ "type": "executiontime", "options": { "style": "iso8601", "threshold": 500 } }🤖 Generated with Claude Code