INNER CODE UNIT · Dart
Jiffy
jama5262/jiffy · lib/src/jiffy.dart:24
class Jiffy {
static final Getter _getter = Getter();
static final DefaultDisplay _defaultDisplay = DefaultDisplay();
static final Parser _parser = Parser(_getter);
static final Manipulator _manipulator = Manipulator(_getter);
static final Query _query = Query(_getter, _manipulator);
static final Display _display = Display(_getter, _manipulator, _query);
late Locale _locale;
late final DateTime _dateTime;
/// Sets the locale for this [Jiffy] instance based on the given [locale] string.
///
/// If not provided, the default locale is `en_US`
///
/// The [locale] parameter should be a valid string representation of a
/// supported locale, such as `'en_US'` or `'fr_FR'`. If the provided locale
/// is not supported, a [JiffyException] will be thrown.