Skip to content

Commit

Permalink
mention escaping behavior in Duration.toFormat docstring (#1221)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark authored Jul 9, 2022
1 parent 7b4a9d0 commit 4332730
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/duration.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ export default class Duration {
* * `y` for years
* Notes:
* * Add padding by repeating the token, e.g. "yy" pads the years to two digits, "hhhh" pads the hours out to four digits
* * Tokens can be escaped by wrapping with single quotes.
* * 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.
* @param {string} fmt - the format string
* @param {Object} opts - options
Expand Down

0 comments on commit 4332730

Please sign in to comment.