google / google/built_value.dart

Support milliseconds with ISO8601DurationSerializer

Open
#1,231 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
886
Forks
195
Avg merge
1d 11h
Merged PRs (30d)
4

Description

Per https://stackoverflow.com/questions/27058529/iso-8601-duration-with-milliseconds

Use case - EdgeDB outputs ISO 8601 duration values with decimal values for millisecond precision (and doesn't currently have a DSL function to convert to milliseconds since epoch). I can address with them or write something custom but I figure an update to the bundled serializer would be the best solution :)

`'PT9.977S'`
https://www.edgedb.com/docs/stdlib/datetime#function::std::duration_get

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.