Skip to content

Commit

Permalink
Update the docs to mention the default serializers
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhalanskyjb committed Jul 22, 2024
1 parent 603984d commit 190f8ab
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/common/src/Instant.kt
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ import kotlin.time.*
* ```
*
* Additionally, there are several `kotlinx-serialization` serializers for [Instant]:
* - The default serializer, delegating to [toString] and [parse].
* - [InstantIso8601Serializer] for the ISO 8601 extended format.
* - [InstantComponentSerializer] for an object with components.
*
Expand Down
1 change: 1 addition & 0 deletions core/common/src/LocalDate.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import kotlinx.serialization.Serializable
* See sample 4.
*
* Additionally, there are several `kotlinx-serialization` serializers for [LocalDate]:
* - The default serializer, delegating to [toString] and [parse].
* - [LocalDateIso8601Serializer] for the ISO 8601 extended format.
* - [LocalDateComponentSerializer] for an object with components.
*
Expand Down
1 change: 1 addition & 0 deletions core/common/src/LocalDateTime.kt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ import kotlinx.serialization.Serializable
* See sample 4.
*
* Additionally, there are several `kotlinx-serialization` serializers for [LocalDateTime]:
* - The default serializer, delegating to [toString] and [parse].
* - [LocalDateTimeIso8601Serializer] for the ISO 8601 extended format.
* - [LocalDateTimeComponentSerializer] for an object with components.
*
Expand Down
1 change: 1 addition & 0 deletions core/common/src/LocalTime.kt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ import kotlinx.serialization.Serializable
* See sample 4.
*
* Additionally, there are several `kotlinx-serialization` serializers for [LocalTime]:
* - The default serializer, delegating to [toString] and [parse].
* - [LocalTimeIso8601Serializer] for the ISO 8601 extended format,
* - [LocalTimeComponentSerializer] for an object with components.
*
Expand Down
3 changes: 2 additions & 1 deletion core/common/src/UtcOffset.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ import kotlinx.serialization.Serializable
* [parse] and [UtcOffset.format] both support custom formats created with [Format] or defined in [Formats].
* See sample 3.
*
* To serialize and deserialize [UtcOffset] values with `kotlinx-serialization`, use the [UtcOffsetSerializer].
* To serialize and deserialize [UtcOffset] values with `kotlinx-serialization`, use the default serializer,
* or [UtcOffsetIso8601Serializer] for the ISO 8601 format explicitly.
*
* @sample kotlinx.datetime.test.samples.UtcOffsetSamples.construction
* @sample kotlinx.datetime.test.samples.UtcOffsetSamples.simpleParsingAndFormatting
Expand Down

0 comments on commit 190f8ab

Please sign in to comment.