Skip to content

Commit 748ed5f

Browse files
committed
reverted moving scala-core-date to scala directory
1 parent 5b03ff6 commit 748ed5f

File tree

16 files changed

+4
-7
lines changed

16 files changed

+4
-7
lines changed

scala-core-modules/scala-core-8/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
- [The Either Type in Scala](https://www.baeldung.com/scala/either-type)
55
- [Understanding the Differences: reduceLeft, reduceRight, foldLeft, foldRight, scanLeft, and scanRight in Scala](https://www.baeldung.com/scala/reduce-fold-scan-left-right)
66
- [Different Ways to Reverse a Sequence in Scala](https://www.baeldung.com/scala/reverse-sequence)
7+
- [Generate List of Dates Between a Range in Scala](https://www.baeldung.com/scala/date-range-list)

scala-core-modules/scala-core-dates/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ This module contains articles about Scala's date features.
99
- [Get Difference Between Two Dates](https://www.baeldung.com/scala/difference-between-two-dates)
1010
- [Convert Epoch Milliseconds to DateTime in Scala](https://www.baeldung.com/scala/epoch-milliseconds-datetime)
1111
- [Convert a String to Date in Scala](https://www.baeldung.com/scala/string-to-date)
12-
- [Generate List of Dates Between a Range in Scala](https://www.baeldung.com/scala/date-range-list)

scala-core-modules/scala-core-dates/src/main/scala/com/baeldung/scala/datesandtimes/JavaTime.scala renamed to scala-core-modules/scala-core-dates/src/main/scala-2/com/baeldung/scala/datesandtimes/JavaTime.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
package com.baeldung.scala.datesandtimes
2-
32
import java.time.LocalDate
43
import java.time.format.DateTimeFormatter
54

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
package com.baeldung.scala.datesandtimes
2-
32
import java.text.SimpleDateFormat
43
import scala.concurrent.duration.Duration
5-
import scala.concurrent.{Await, ExecutionContext, Future}
4+
import scala.concurrent.{Await, Future}
65

76
object JavaUtilDate extends App {
87

9-
implicit val ec: ExecutionContext =
10-
scala.concurrent.ExecutionContext.Implicits.global
8+
implicit val ec = scala.concurrent.ExecutionContext.Implicits.global
119

1210
val format: ThreadLocal[SimpleDateFormat] =
1311
new ThreadLocal[SimpleDateFormat] {
@@ -33,5 +31,5 @@ object JavaUtilDate extends App {
3331
val date1 = Await.result(r1, Duration.Inf)
3432
val date2 = Await.result(r2, Duration.Inf)
3533

36-
println(s"$date1, $date2") // Prints "Wed Jul 01 2020, Fri Aug 21 2020"
34+
println(date1 + ", " + date2) // Prints "Wed Jul 01 2020, Fri Aug 21 2020"
3735
}

0 commit comments

Comments
 (0)