美文网首页
iOS时间字符串固定位24小时制

iOS时间字符串固定位24小时制

作者: 44b6889cedeb | 来源:发表于2023-05-15 11:58 被阅读0次

NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];

    NSLocale *zh_CNLocale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US_POSIX"];

    dateFormatter.locale= zh_CNLocale;

相关文章

网友评论

      本文标题:iOS时间字符串固定位24小时制

      本文链接:https://www.haomeiwen.com/subject/zwvmsdtx.html