DateFormateType
public enum DateFormateType : String
日期格式化类型
-
- YMDHMS: 年月日时分秒/2019-01-01 12:00:00
Declaration
Swift
case YMDHMS = "yyyy-MM-dd HH:mm:ss"
-
- YMDHM: 年月日时分/2019-01-01 12:00
Declaration
Swift
case YMDHM = "yyyy-MM-dd HH:mm"
-
- MDHM: 月日时分/01-01 12:00
Declaration
Swift
case MDHM = "MM-dd HH:mm"
-
- YMDE: 日期星期/2019-01-01 星期一
Declaration
Swift
case YMDE = "yyyy-MM-dd EEEE"
-
- YMD: 年月日/2019-01-01
Declaration
Swift
case YMD = "yyyy-MM-dd"
-
- HMS: 时分秒/12:00:00
Declaration
Swift
case HMS = "HH:mm:ss"
-
- YM: 年月日/2019-01
Declaration
Swift
case YM = "yyyy-MM"
-
- MD: 月日/2019-01
Declaration
Swift
case MD = "MM-dd"
-
- HM: 时分/12:00
Declaration
Swift
case HM = "HH:mm"