[go: up one dir, main page]

Module time

Source
Expand description

GraphQL support for time crate types.

§Supported types

Rust typeFormatGraphQL scalar
Dateyyyy-MM-ddDate
TimeHH:mm[:ss[.SSS]]LocalTime
PrimitiveDateTimeyyyy-MM-dd HH:mm:ssLocalDateTime
OffsetDateTimeRFC 3339 stringDateTime
UtcOffset±hh:mmUtcOffset

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.
UtcOffset
Offset from UTC in ±hh:mm format. See list of database time zones.