FWDateWrapper

@interface FWDateWrapper : FWObjectWrapper

Undocumented

FWFoundation

  • 转化为字符串,默认当前时区,格式:yyyy-MM-dd HH:mm:ss

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull stringValue;
  • 转化为字符串,默认当前时区,自定义格式

    Declaration

    Objective-C

    - (nonnull NSString *)stringWithFormat:(nonnull NSString *)format;
  • 转化为字符串,自定义格式和时区

    Declaration

    Objective-C

    - (nonnull NSString *)stringWithFormat:(nonnull NSString *)format
                                  timeZone:(nullable NSTimeZone *)timeZone;