Skip to content

Commit

Permalink
Rename Interval to Period
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Nov 7, 2024
1 parent d3c5b59 commit f2a0026
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@

package aviation

case class Interval(from: Instant, to: Instant):
case class Period(from: Instant, to: Instant):
def duration: Duration = to - from
4 changes: 2 additions & 2 deletions src/core/aviation.Timing.scala
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ object Timing:

extension (instant: Instant)
@targetName("to")
infix def ~ (that: Instant): Interval = Interval(instant, that)
infix def ~ (that: Instant): Period = Period(instant, that)

def tai: TaiInstant = LeapSeconds.tai(instant)

Expand All @@ -96,4 +96,4 @@ object Timing:
LocalTime(date, time, timezone)

extension (duration: Duration)
def from(instant: Instant): Interval = Interval(instant, Instant.plus.add(instant, duration))
def from(instant: Instant): Period = Period(instant, Instant.plus.add(instant, duration))
2 changes: 1 addition & 1 deletion src/core/soundness+aviation-core.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package soundness

export aviation.{Base24, Base60, Calendar, Clock, Clockface, DateError, Denomination,
DiurnalTimespan, FixedDuration, Horology, Interval, LeapSeconds, LocalTime, MonthName,
DiurnalTimespan, FixedDuration, Horology, Period, LeapSeconds, LocalTime, MonthName,
RomanCalendar, StandardTime, TemporalTimespan, Timespan, Timestamp, TimeSystem, Timezone,
TimezoneError, Timing, Tzdb, TzdbError, Weekday, YearMonth, now, today, TimeEvent, am, pm,
year, month, week, day, hour, minute, second, years, months, weeks, days, hours, minutes,
Expand Down

0 comments on commit f2a0026

Please sign in to comment.