mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
* Added method to set release date with natural month.
This commit is contained in:
parent
8765f6ec45
commit
c5bb536b46
185 changed files with 278 additions and 349 deletions
|
|
@ -31,6 +31,7 @@ import java.io.Serializable;
|
|||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.EnumMap;
|
||||
import java.util.GregorianCalendar;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import mage.cards.repository.CardCriteria;
|
||||
|
|
@ -298,6 +299,11 @@ public abstract class ExpansionSet implements Serializable {
|
|||
}
|
||||
}
|
||||
|
||||
public static Date buildDate(int year, int month, int day) {
|
||||
// The month starts with 0 = jan ... dec = 11
|
||||
return new GregorianCalendar(year, month - 1, day).getTime();
|
||||
}
|
||||
|
||||
/**
|
||||
* Can be overwritten if sometimes special cards will be generated instead
|
||||
* of common slots
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue