Skip to content
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"
def fmt_ms [ms: int] { $'($ms)ms' | into duration }\n# If you prefer h & s than hr & sec\ndef fmt_ms [ms: int] { $'($ms)ms' | into duration | into string | str replace hr h | str replace sec s }
","upvoteCount":2,"url":"https://github.com/nushell/nushell/discussions/14277#discussioncomment-11173837"}}}
Discussion options

You must be logged in to vote
def fmt_ms [ms: int] { $'($ms)ms' | into duration }
# If you prefer h & s than hr & sec
def fmt_ms [ms: int] { $'($ms)ms' | into duration | into string | str replace hr h | str replace sec s }

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gmr458
Comment options

Answer selected by gmr458
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants