Swift - 时间获取

    xiaoxiao2023-10-11  144

    let currenttime = Date() let dateFormatter = DateFormatter() var convertedDate = dateFormatter.string(from: currenttime) dateFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss" convertedDate = dateFormatter.string(from: currenttime)
    最新回复(0)