date_n_time library

Dart Package for working with Dates without Times.

Classes

LocalDate
A date without a time-zone, such as July 20, 1969.
LocalDateRange
LocalDateTime
A date-time without a time-zone, such as July 20, 1969, 8:18pm.
LocalTime
A time without a time-zone, such as 8:18pm.
Period
A date-based amount of time in the ISO-8601 calendar system, such as '2 years, 3 months and 4 days'.
Temporal
A moment in time, such as a date, time, or a combination of both.
TemporalAmount
An amount of time, such as "6 hours" or "8 days".
TimeSpan
A time-based amount of time, such as '34.5 seconds'.
WeekFields
Localized definitions of week-related aspects.
ZonedDateTime
A date-time with a time-zone, such as July 20, 1969, 8:18pm GMT.

Enums

ChronoField
ChronoUnit
DayOfWeek
A day-of-week, such as 'Tuesday'.
ZoneId
A time-zone, such as UTC.

Extensions

DateTimeExtensions on DateTime
Extensions on DateTime for converting to a temporal.
LocalDateTimeWithZone on LocalDateTime
Extensions for constructing a ZonedDateTime from a LocalDateTime.
LocalDateWithTime on LocalDate
Extensions for constructing a LocalDateTime from a LocalDate.
LocalTimeWithDate on LocalTime
Extensions for constructing a LocalDateTime from a LocalTime.
TemporalAdjusters on T
TemporalWeekFields on T
Extensions for localized calculations on Temporal.

Exceptions / Errors

UnsupportedTemporalTypeError
The operation was not allowed by the temporal.