// // TimeSourceModel.m // smartRhino // // Created by Android on 2019/12/23. // Copyright © 2019 tederen. All rights reserved. // #import "TimeSourceModel.h" @implementation TimeSourceModel - (NSString *)notSignDate { if (!_notSignDate) { _notSignDate = [_timeDate stringByReplacingOccurrencesOfString:@"-" withString:@""]; } return _notSignDate; } - (NSString *)timeWeek { return [_monthAndDay stringByAppendingString:_timeWeek]; } - (NSString *)monthAndDay { if (!_monthAndDay) { NSArray *times = [_timeDate componentsSeparatedByString:@"-"]; if (times.count >= 3) { _monthAndDay = [NSString stringWithFormat:@"%ld月%ld日",[times[1] integerValue],[times[2] integerValue]]; } } return _monthAndDay; } @end