Skip to main content

Duration.between

Duration.betweenstart_inclusiveend_exclusivetimezone_aware

Documentation

Create an interval representing the duration between two points in time.

Arguments

  • start_inclusive: The start datetime of the duration, included.
  • end_exclusive: The end datetime of the duration, excluded.
  • timezone_aware: Whether the duration between two given times should be aware of the timezone, that can be set for start or end times.

Examples

An hour interval between two points in time.

      from Standard.Base import Date_Time
import Standard.Base.Data.Time.Duration

example_between = Duration.between Date_Time.now (Date_Time.new 2010 10 20)