We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b330739 + fc496cb commit b328768Copy full SHA for b328768
morphir/sdk/core/src/morphir/sdk/LocalDate.scala
@@ -47,6 +47,9 @@ object LocalDate {
47
def diffInYears(fromDate: LocalDate)(toDate: LocalDate): Int =
48
(YEARS between (fromDate, toDate)).toInt
49
50
+ def isWeekDay(date: LocalDate): Bool =
51
+ date.getDayOfWeek.getValue < 6
52
+
53
/** Provides a conversion from a `java.time.LocalDate` to a `morphir.sdk.LocalDate.LocalDate`
54
*/
55
implicit def fromJavaTimeLocalDate(
0 commit comments