MCPcopy Create free account
hub / github.com/Card-Forge/forge / parseDate

Method parseDate

forge-game/src/main/java/forge/game/GameFormat.java:179–187  ·  view source on GitHub ↗
(String date)

Source from the content-addressed store, hash-verified

177 }
178
179 private static Date parseDate(String date) {
180 if (date.length() <= 7)
181 date = date + "-01";
182 try {
183 return formatter.parse(date);
184 } catch (ParseException e) {
185 return new Date();
186 }
187 }
188
189 public Date getEffectiveDate() { return effectiveDate; }
190

Callers 3

GameFormatMethod · 0.95
GameFormatClass · 0.95
readMethod · 0.45

Calls 2

lengthMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected