[go: up one dir, main page]

Module chrono

Source
Expand description

GraphQL support for chrono crate types.

§Supported types

Rust typeFormatGraphQL scalar
NaiveDateyyyy-MM-ddDate
NaiveTimeHH:mm[:ss[.SSS]]LocalTime
NaiveDateTimeyyyy-MM-dd HH:mm:ssLocalDateTime
DateTimeRFC 3339 stringDateTime

Traits§

FromFixedOffset
Trait allowing to implement a custom TimeZone, which preserves its TimeZone information when parsed in a DateTime GraphQL scalar.

Type Aliases§

Date
Date in the proleptic Gregorian calendar (without time zone).
DateTime
Combined date and time (with time zone) in RFC 3339 format.
LocalDateTime
Combined date and time (without time zone) in yyyy-MM-dd HH:mm:ss format.
LocalTime
Clock time within a given date (without time zone) in HH:mm[:ss[.SSS]] format.