public DvDate(int year) { super(DvDateTimeParser.convertDate(year, 1, 1)); setValueByPattern("yyyy"); setBooleans(true, false, false); }
public DvDate(int year) { super(DvDateTimeParser.convertDate(year, 1, 1)); setValueByPattern("yyyy"); setBooleans(true, false, false); }
/** * Constructs a DvDate with timezone * * @param year * @param month starts with 0 * @param day * @param timezone null if use default timezone */ public DvDate(int year, int month, int day) { super(DvDateTimeParser.convertDate(year, month, day)); setValueByPattern("yyyy-MM-dd"); setBooleans(false, true, true); }
/** * Constructs a DvDate with timezone * * @param year * @param month starts with 0 * @param day * @param timezone null if use default timezone */ public DvDate(int year, int month, int day) { super(DvDateTimeParser.convertDate(year, month, day)); setValueByPattern("yyyy-MM-dd"); setBooleans(false, true, true); }
/** * Contructs a partial DvDate * * @param year * @param month * @param monthKnown * @param day * @param dayKnown * @param timezone */ public DvDate(int year, int month) { super(DvDateTimeParser.convertDate(year, month, 1)); setValueByPattern("yyyy-MM"); setBooleans(true, true, false); }
/** * Contructs a partial DvDate * * @param year * @param month * @param monthKnown * @param day * @param dayKnown * @param timezone */ public DvDate(int year, int month) { super(DvDateTimeParser.convertDate(year, month, 1)); setValueByPattern("yyyy-MM"); setBooleans(true, true, false); }
protected DvDate(List<ReferenceRange<DvDate>> referenceRanges, DvInterval<DvDate> normalRange, CodePhrase normalStatus, DvDuration accuracy, String magnitudeStatus, DateTime datetime, String pattern) { super(referenceRanges, normalRange, normalStatus, accuracy, magnitudeStatus, datetime); setValue(DvDateTimeParser.toDateString(getDateTime(), pattern)); setBooleans(pattern); }
protected DvDate(List<ReferenceRange<DvDate>> referenceRanges, DvInterval<DvDate> normalRange, CodePhrase normalStatus, DvDuration accuracy, String magnitudeStatus, DateTime datetime, String pattern) { super(referenceRanges, normalRange, normalStatus, accuracy, magnitudeStatus, datetime); setValue(DvDateTimeParser.toDateString(getDateTime(), pattern)); setBooleans(pattern); }
/** * Construct a DvDate of current date * */ public DvDate() { super(DvDateTimeParser.defaultDate()); setValue(DvDateTimeParser.toDateString(getDateTime(), "yyyy-MM-dd")); setBooleans(false, true, true); }
/** * Construct a DvDate of current date * */ public DvDate() { super(DvDateTimeParser.defaultDate()); setValue(DvDateTimeParser.toDateString(getDateTime(), "yyyy-MM-dd")); setBooleans(false, true, true); }