Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make date-time encoding more discoverable #5562

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ Built in types are related to each other according to the rules described in [ty
| `plainDate` | A date on a calendar without a time zone, e.g. "April 10th" |
| `plainTime` | A time on a clock without a time zone, e.g. "3:00 am" |
| `utcDateTime` | A date and time in coordinated universal time (UTC), e.g. "1985-04-12T23:20:50.52Z" |
| `offsetDateTime` | A date and time in a particular time zone, e.g. "April 10th at 3:00am in PST" |
| `offsetDateTime` | A date and time in a particular time zone, e.g. "1985-04-12T16:20:50-08:00" |
| `duration` | A duration/time period. e.g 5s, 10h |

For more information about how emitters should encode date-time strings, read [Encoding of types](https://typespec.io/docs/libraries/http/encoding/#utcdatetime-and-offsetdatetime) in the HTTP library.

## Other core types

| Type | Description |
Expand Down
Loading