From 43327307d204fe08798ac9e0da492576f2f0ea6c Mon Sep 17 00:00:00 2001 From: Connor Clark Date: Sat, 9 Jul 2022 09:08:25 -0700 Subject: [PATCH] mention escaping behavior in Duration.toFormat docstring (#1221) --- src/duration.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/duration.js b/src/duration.js index f86e4ef10..3be060cf6 100644 --- a/src/duration.js +++ b/src/duration.js @@ -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