format property

String get format

Implementation

String get format {
  switch (this) {
    case DateFormat.def:
      return "yyyy-MM-dd HH:mm:ss";
    case DateFormat.yMDHM:
      return "yyyy-MM-dd HH:mm";
    case DateFormat.yMD:
      return "yyyy-MM-dd";
    case DateFormat.yM:
      return "yyyy-MM";
    case DateFormat.mD:
      return "MM-dd";
    case DateFormat.mDHM:
      return "MM-dd HH:mm";
    case DateFormat.hMS:
      return "HH:mm:ss";
    case DateFormat.hM:
      return "HH:mm";
    case DateFormat.dMYHMS:
      return "dd-MM-yyyy HH:mm:ss";
    case DateFormat.dMYHMS2:
      return "dd/MM/yyyy HH:mm:ss";
    case DateFormat.dMYHM:
      return "dd-MM-yyyy HH:mm";
    case DateFormat.dMYHM2:
      return "dd/MM/yyyy HH:mm";
    case DateFormat.dMY:
      return "dd-MM-yyyy";
    case DateFormat.dMY2:
      return "dd/MM/yyyy";

    case DateFormat.zhDefValue:
      return "yyyy年MM月dd日 HH时mm分ss秒SSS毫秒";
    case DateFormat.zhYMDHM:
      return "yyyy年MM月dd日 HH时mm分";
    case DateFormat.zhYMD:
      return "yyyy年MM月dd日";
    case DateFormat.zhYM:
      return "yyyy年MM月";
    case DateFormat.zhMD:
      return "MM月dd日";
    case DateFormat.zhMDHM:
      return "MM月dd日 HH时mm分";
    case DateFormat.zhHMS:
      return "HH时mm分ss秒";
    case DateFormat.zhHM:
      return "HH时mm分";

    case DateFormat.mDYHMS:
      return "MM/dd/yyyy HH:mm:ss";
    case DateFormat.mDYHM:
      return "MM/dd/yyyy HH:mm";
    case DateFormat.mDY:
      return "MM/dd/yyyy";
  }
}