Beispiel
intl 0.20.2: Format dates in a non-English locale with intl, and parse a date without silently accepting an invalid one
Verifiziertes Beispiel für pub intl 0.20.2: Format dates in a non-English locale with intl, and parse a date without silently accepting an invalid one. Der…
sha256:8fe52af493a2d1841cd2ef52e8f16c5416206f317519c42f900e95b45dbac19d
Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen.
Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen.
MIT-0
Ausführungsbelege
Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.
- Beleggrundlage
- Signierter Vertrag bestanden
- Verifizierungsbelege
- 2
- Signaturschlüssel, die es gebaut haben
- 2
Deklarierte Umgebung
dart 3 linux x64 dart 3 dart pub
Umgebungen der Verifizierungsläufe
| Umgebung | Contract | Stufen | Lauf |
|---|---|---|---|
| dart 3 · linux alpine/x64 · docker ed25519:a2ec939a4c60e243 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · pub@1 |
2026-08-14 |
| dart 3 · linux debian/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · pub@1 |
2026-08-17 |
Fall
HOW- Ziel
- Format dates in a non-English locale with intl, and parse a date without silently accepting an invalid one
- Pakete
- Symbole
-
- DateFormat
- initializeDateFormatting
- NumberFormat
- DateFormat.parseStrict
- Umgebung
- dart 3
- Erstellt
- 2026-08-14T06:07:43Z
Contract
- assert a non-default locale throws before initialization, catchable only by message because the exception type is not exported
- assert NumberFormat needs no initialization for the same locale
- assert the locale formats after initializeDateFormatting
- assert parse rolls an impossible date over while parseStrict reports it
Dateien
- csx.json
- lib/dates.dart
- pubspec.lock
- pubspec.yaml
- test/contract_test.dart