Skip to contents

Types

Temporal’s eight types, each built by the function named after it from fields, strings or other values. Each topic lists every member of the type and the R function that implements it.

instant() instant_from_epoch_milliseconds() instant_from_epoch_nanoseconds() instant_compare()
Exact times: Temporal's Instant
zoned_date_time() zoned_date_time_compare()
Exact times in a time zone: Temporal's ZonedDateTime
plain_date_time() plain_date_time_compare()
Calendar dates with clock times: Temporal's PlainDateTime
plain_date() plain_date_compare()
Calendar dates: Temporal's PlainDate
plain_time() plain_time_compare()
Clock times: Temporal's PlainTime
plain_year_month() plain_year_month_compare()
Months: Temporal's PlainYearMonth
plain_month_day()
Days of the year: Temporal's PlainMonthDay
duration() duration_compare()
Durations: Temporal's Duration

Properties

Temporal’s properties, as accessors named after them.

Methods

Temporal’s prototype methods, as temporal_ and the method name.

temporal_add() temporal_subtract()
Add a duration to, or subtract one from, a Temporal value
temporal_until() temporal_since()
Difference between two Temporal values
temporal_round()
Round a Temporal value
temporal_total()
Total a duration in one unit
temporal_with() temporal_with_plain_time() temporal_with_calendar() temporal_with_time_zone()
Replace fields of a Temporal value
temporal_equals()
Compare Temporal values
temporal_negated() temporal_abs()
Negate or take the magnitude of a duration
temporal_start_of_day()
The start of a day in a time zone
temporal_get_time_zone_transition()
Time zone transitions
temporal_to_instant() temporal_to_zoned_date_time_iso() temporal_to_zoned_date_time()
Convert to and from zoned values
temporal_to_plain_date() temporal_to_plain_time() temporal_to_plain_date_time() temporal_to_plain_year_month() temporal_to_plain_month_day()
Convert between the plain types
temporal_to_string()
Format a Temporal value as an ISO 8601 string

Now

Temporal.Now: the system time zone and the current time.

Conversions and reading

Options

zutempo_options
Options shared by zutempo's functions

The package

zutempo zutempo-package
zutempo: Dates, Times and Durations Following 'JavaScript' Temporal
zutempo_info()
What zutempo was built against
zutempo_tz_reset()
Forget the parsed time zones