equal
deleted
inserted
replaced
57 def apply(date: Date): String |
57 def apply(date: Date): String |
58 def parse(str: String): Date |
58 def parse(str: String): Date |
59 def unapply(str: String): Option[Date] = |
59 def unapply(str: String): Option[Date] = |
60 try { Some(parse(str)) } |
60 try { Some(parse(str)) } |
61 catch { case _: DateTimeParseException => None } |
61 catch { case _: DateTimeParseException => None } |
|
62 object Strict |
|
63 { |
|
64 def unapply(s: String): Some[Date] = Some(parse(s)) |
|
65 } |
62 } |
66 } |
63 |
67 |
64 |
68 |
65 /* date operations */ |
69 /* date operations */ |
66 |
70 |