Skip to content

Commit

Permalink
Subtle whitespace changes on infix methods
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jun 11, 2024
1 parent 497d95e commit c480d0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/time.scala
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ object Dates:
def julianDay: Int = date
def addDays(count: Int): Date = date + count

infix def at(time: Time)(using Calendar): Timestamp = Timestamp(date, time)
infix def at (time: Time)(using Calendar): Timestamp = Timestamp(date, time)

@targetName("plus")
infix def + (period: Period)(using Calendar): Date = Date.plus.add(date, period)
Expand Down Expand Up @@ -269,7 +269,7 @@ object Timing:
//@targetName("minus")
//infix def - (duration: Instant): Duration = Instant.minus(instant, duration)

infix def in(using RomanCalendar)(timezone: Timezone): LocalTime =
infix def in (using RomanCalendar)(timezone: Timezone): LocalTime =
val zonedTime = jt.Instant.ofEpochMilli(instant).nn.atZone(jt.ZoneId.of(timezone.name.s)).nn

val date = (zonedTime.getMonthValue: @unchecked) match
Expand Down Expand Up @@ -424,7 +424,7 @@ object Timestamp:
def add(left: Timestamp, right: Timespan): Timestamp = ???

case class Timestamp(date: Date, time: Time):
infix def in(timezone: Timezone): LocalTime = LocalTime(date, time, timezone)
infix def in (timezone: Timezone): LocalTime = LocalTime(date, time, timezone)

object MonthName:
def apply(i: Int): MonthName = MonthName.fromOrdinal(i - 1)
Expand Down

0 comments on commit c480d0f

Please sign in to comment.