//
//  ALTopicCommentObject.m
//  GMAlpha
//
//  Created by Mikasa on 2018/11/7.
//  Copyright © 2018 Gengmei. All rights reserved.
//

#import "ALTopicCommentObject.h"
#import "ALTranslateTool.h"

@implementation ALTopicCommentUserObject

@end

@implementation ALTopicCommentObject

- (void)setCreate_time:(NSString *)create_time {
    _create_time = [self timeWithTimeIntervalString:create_time];
}

- (NSString *)timeWithTimeIntervalString:(NSString *)timeString
{
    // 格式化时间
    NSDateFormatter* formatter = [[NSDateFormatter alloc] init];
    [formatter setDateFormat:@"MM-dd"];
    
    // 毫秒值转化为秒
    NSTimeInterval interval =[timeString doubleValue];
    NSDate* date = [NSDate dateWithTimeIntervalSince1970:interval];
    NSString* dateString = [formatter stringFromDate:date];
    return dateString;
}
@end

@implementation ALTopicCommentReplyObject



@end
