This is an automated email from the ASF dual-hosted git repository. chaokunyang pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/fory-site.git
commit 6e80d985ca8fa9e6bd937268ebf7c1c049ad2518 Author: chaokunyang <[email protected]> AuthorDate: Tue Apr 21 17:49:40 2026 +0000 🔄 synced local 'docs/guide/' with remote 'docs/guide/' --- docs/guide/dart/supported-types.md | 6 ++++++ docs/guide/swift/basic-serialization.md | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/guide/dart/supported-types.md b/docs/guide/dart/supported-types.md index ad2b5c273..3d309ee5b 100644 --- a/docs/guide/dart/supported-types.md +++ b/docs/guide/dart/supported-types.md @@ -79,6 +79,12 @@ final birthday = LocalDate(1990, 12, 1); final timeout = const Duration(seconds: 30); ``` +The temporal wrappers expose conversion helpers: + +- `Timestamp.fromDateTime(...)` and `timestamp.toDateTime()` +- `LocalDate.fromEpochDay(...)`, `date.toEpochDay()` +- `LocalDate.fromDateTime(...)` and `date.toDateTime()` + `Duration` support in Dart is exact to microseconds. Incoming xlang duration payloads that use sub-microsecond nanoseconds are rejected instead of being silently truncated. diff --git a/docs/guide/swift/basic-serialization.md b/docs/guide/swift/basic-serialization.md index 7931831d9..4d7283be5 100644 --- a/docs/guide/swift/basic-serialization.md +++ b/docs/guide/swift/basic-serialization.md @@ -92,8 +92,12 @@ assert(fromBuffer == person) ### Date and time - `Date` -- `ForyDate` -- `ForyTimestamp` +- `LocalDate` +- `Duration` + +Use `Date` for timestamp values and `LocalDate` for day-only dates. `LocalDate` +supports epoch-day and `Date` conversions through `fromEpochDay(_:)`, +`toEpochDay()`, `init(date:)`, and `toDate()`. ### Collections --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
