Skip to content

Commit

Permalink
mention escaping behavior in Duration.toFormat docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Jun 19, 2022
1 parent 6b47f20 commit c9f45b5
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 c9f45b5

Please sign in to comment.