Skip to main content

Period.between

Period.betweenstart_date_inclusiveend_date_exclusive

Documentation

Create a Period representing the time interval between two dates.

Arguments

  • start_date_inclusive: The start date of the period, included.
  • end_date_exclusive: The end date of the period, excluded.

Examples

Get a Period between 2022-10-21 and 2022-09-12

      import Standard.Base.Data.Time.Period

example_period = Period.between (Date.new 2022 10 21) (Date.new 2022 9 12)