Understand lubridate time span classes
mainLubridate introduces three time span classes to expand mathematical operations on date-times:
durations: Measures the exact amount of time between two points.periods: Tracks clock times accurately, accounting for leap years, leap seconds, and daylight savings time.intervals: A summary of the time information between two points.