Skip to content

Commit

Permalink
docs(vrl): add more parse-duration function doc (#22088)
Browse files Browse the repository at this point in the history
* Add more `parse-duration` function doc

* Fix example

---------

Co-authored-by: Pavlos Rontidis <pavlos.rontidis@gmail.com>
  • Loading branch information
titaneric and pront authored Jan 10, 2025
1 parent bd976f1 commit 4605e5b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions website/cue/reference/remap/functions/parse_duration.cue
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,12 @@ remap: functions: parse_duration: {
"""#
return: 1.005
},
{
title: "Parse multiple durations (seconds & milliseconds)"
source: #"""
parse_duration!("1s 1ms", unit: "ms")
"""#
return: 1001.0
},
]
}

0 comments on commit 4605e5b

Please sign in to comment.