Date-Time Types and Tools
Getters: date
Is x
a year-month-day?
Is x
a year-month-weekday?
Is x
a year-quarter-day?
Is x
a year-week-day?
Is x
a zoned-time?
Arithmetic: date-time
Boundaries: date-time
Precision: time point
Convert to a date-time
Calendar setters
Convert to a date
Convert to a duration
Convert to iso-year-week-day
Convert to a naive-time
Convert to a sys-time
Convert to a weekday
Convert to year-day
Convert to year-month-day
Convert to year-month-weekday
Convert to year-quarter-day
Convert to year-week-day
Counting: date
Convert to a zoned-time
Convert to a zoned-time from a date
Convert to a zoned-time from a naive-time
Convert to a zoned-time from a date-time
Convert to a zoned-time from a sys-time
Group calendar components
Formatting: date
Is the calendar year a leap year?
Convert a calendar to an ordered factor of month names
Narrow a calendar to a less precise precision
Precision: calendar
Spanning sequence: calendars
Widen a calendar to a more precise precision
Boundaries: calendars
Counting: calendars
Create or retrieve date related labels
Create a clock locale
Support for vctrs arithmetic
Clock arithmetic
Integer codes
Calendar getters
Invalid calendar dates
clock: Date-Time Types and Tools
Building: date
Counting: date and date-time
Formatting: date and date-time
Group date and date-time components
Is the year a leap year?
Convert a date or date-time to an ordered factor of month names
Parsing: date
Sequences: date and date-time
Spanning sequence: date and date-time
Building: date-time
Info: date-time
Convert a date or date-time to a weekday factor
Boundaries: date and date-time
Date and date-time rounding
Shifting: date and date-time
Arithmetic: date
Boundaries: date
Group date components
Rounding: date
Sequences: date
Setters: date
Shifting: date
Spanning sequence: duration
Parsing: date-time
Get or set the time zone
Current date and date-time
Get or set the time zone
Cast a duration between precisions
Precision: duration
Is x
a year-day?
Arithmetic: duration
Construct a duration
Duration rounding
Formatting: zoned-time
Is x
a duration?
Is x
a iso-year-week-day?
Is x
a naive-time?
Is x
a sys-time?
Is x
a weekday?
Calendar: iso-year-week-day
Arithmetic: iso-year-week-day
Boundaries: iso-year-week-day
Counting: iso-year-week-day
Getters: iso-year-week-day
Grouping: iso-year-week-day
Narrow: iso-year-week-day
Setters: iso-year-week-day
Widen: iso-year-week-day
Info: naive-time
Parsing: naive-time
Counting: date-times
Formatting: date-time
Getters: date-time
Group date-time components
Rounding: date-time
Sequences: date-time
Setters: date-time
Shifting: date and date-time
Objects exported from other packages
Sequences: duration
Sequences: iso-year-week-day
Sequences: time points
Sequences: year-day
Sequences: year-month-day
Sequences: year-month-weekday
Sequences: year-quarter-day
Sequences: year-week-day
Info: sys-time
What is the current sys-time?
Parsing: sys-time
Cast a time point between precisions
Counting: time point
Shifting: time point
Spanning sequence: time points
Arithmetic: Time points
Time point rounding
Extract underlying weekday codes
Convert a weekday to an ordered factor
Arithmetic: weekday
Construct a weekday vector
Calendar: year-day
Parsing: year-month-day
Calendar: year-month-day
Calendar: year-month-weekday
Calendar: year-quarter-day
Calendar: year-week-day
Arithmetic: year-day
Boundaries: year-day
Counting: year-day
Getters: year-day
Grouping: year-day
Narrow: year-day
Setters: year-day
Widen: year-day
Arithmetic: year-month-day
Boundaries: year-month-day
Counting: year-month-day
Getters: year-month-day
Grouping: year-month-day
Narrow: year-month-day
Setters: year-month-day
Widen: year-month-day
Arithmetic: year-month-weekday
Boundaries: year-month-weekday
Counting: year-month-weekday
Getters: year-month-weekday
Grouping: year-month-weekday
Narrow: year-month-weekday
Setters: year-month-weekday
Widen: year-month-weekday
Arithmetic: year-quarter-day
Boundaries: year-quarter-day
Counting: year-quarter-day
Getters: year-quarter-day
Grouping: year-quarter-day
Narrow: year-quarter-day
Setters: year-quarter-day
Widen: year-quarter-day
Arithmetic: year-week-day
Boundaries: year-week-day
Counting: year-week-day
Getters: year-week-day
Grouping: year-week-day
Narrow: year-week-day
Setters: year-week-day
Widen: year-week-day
Info: zoned-time
What is the current zoned-time?
Precision: zoned-time
Parsing: zoned-time
Get or set the time zone
Provides a comprehensive library for date-time manipulations using a new family of orthogonal date-time classes (durations, time points, zoned-times, and calendars) that partition responsibilities so that the complexities of time zones are only considered when they are really needed. Capabilities include: date-time parsing, formatting, arithmetic, extraction and updating of components, and rounding.
Useful links