DateTimeF constructor

DateTimeF(
  1. int vYear, [
  2. int vMonth = 1,
  3. int vWeek = 0,
  4. int vDay = 0,
  5. int vHour = 0,
  6. int vMinute = 0,
  7. int vsecond = 0,
])

Implementation

DateTimeF(int vYear,
    [int vMonth = 1,
    int vWeek = 0,
    int vDay = 0,
    int vHour = 0,
    int vMinute = 0,
    int vsecond = 0]) {
  if (vYear >= 0) year = vYear;
  if (vMonth >= 0) month = vMonth;
  if (vWeek >= 0) week = vWeek;
  if (vDay >= 0) day = vDay;
  if (vHour >= 0) hour = vHour;
  if (vMinute >= 0) minute = vMinute;
  if (vsecond >= 0) second = vsecond;
}