* Sets the locale used for all dates. * @param locale The new locale.
(locale: L)
| 280 | * @param locale The new locale. |
| 281 | */ |
| 282 | setLocale(locale: L) { |
| 283 | this.locale = locale; |
| 284 | this._localeChanges.next(); |
| 285 | } |
| 286 | |
| 287 | /** |
| 288 | * Compares two dates. |