Skip to contents

Construction and Casting

phinterval()
Create a new phinterval
hole()
Create a hole phinterval
as_phinterval()
Convert an interval or datetime vector into a phinterval
as_duration()
Convert a phinterval to a duration

Set Operations and Modifications

phint_complement() phint_union() phint_intersect() phint_setdiff()
Vectorized set operations
phint_invert()
Get the gaps in a phinterval as time spans
phint_sift()
Remove instantaneous time spans from a phinterval
phint_squash() datetime_squash()
Squash overlapping intervals into non-overlapping spans

Relations and Predicates

phint_overlaps()
Test whether two phintervals overlap
phint_within()
Test whether a datetime or phinterval is within another phinterval
is_hole()
Test for empty intervals
is_phinterval()
Test if the object is a phinterval
is_phintish()
Test if the object is a phinterval or interval

Accessors

phint_unnest()
Unnest a phinterval into a data frame
phint_start() phint_end() phint_starts() phint_ends()
Accessors for the endpoints of a phinterval
phint_length() phint_lengths()
Compute the length of a phinterval in seconds
n_spans()
Count the number of spans in a phinterval

Time Zone

is_recognized_tzone()
Test if the object is a recognized time zone

Package Options

phinterval_options
Package options

Re-Exports

reexports interval duration POSIXct NA_POSIXct_ tzdb_names tzdb_version
Objects exported from other packages