Skip to content

Commit 4332730

Browse files
authored
mention escaping behavior in Duration.toFormat docstring (#1221)
1 parent 7b4a9d0 commit 4332730

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/duration.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ export default class Duration {
405405
* * `y` for years
406406
* Notes:
407407
* * Add padding by repeating the token, e.g. "yy" pads the years to two digits, "hhhh" pads the hours out to four digits
408+
* * Tokens can be escaped by wrapping with single quotes.
408409
* * The duration will be converted to the set of units in the format string using {@link Duration#shiftTo} and the Durations's conversion accuracy setting.
409410
* @param {string} fmt - the format string
410411
* @param {Object} opts - options

0 commit comments

Comments
 (0)