如果你是一名开发人员,就知道日期工作可能很困难。尽量做一些与日期相当复杂的事情,很快你会想象一个完美的世界,在这个世界中,国家不会在日光下寻找更多的时间来改变他们的小时数,每个月都有相同的天数被删除的时区,一天10小时等等。
日期格式创建者旨在通过给格式化日期尝试和实验来更轻松地处理日期。输入你的日期格式UTS,选择一个日期,看看一个NSDateFormatter如何将它变成一个字符串。输入日期作为字符串,看看它是否有效,并成为您正在等待的日期。一旦您对表单的正确性感到满意,您可以导出Swift或Objective-C代码以根据您的规范初始化NSDateFormatter。
不要浪费时间想知道为什么他们的日期不被分析,并开始使用日期格式创建器。
If you’re a developer know that work with dates can be difficult. Try to do something reasonably complex with dates and soon you’ll be imagining a perfect world where countries fail to change their hours back and forth in a search for more daylight, every month has the same number of days are deleted time zones, and are 10 hours in a day and so on.
Date Format Creator aims to work with dates a little easier by giving formatter dates to try and experiment. Enter your date format UTS, choose a date and see how a NSDateFormatter would turn it into a string. Enter a date as a string and see if it is valid and becomes the dates you are waiting. Once you are happy that your form is correct, you can export the Swift or Objective-C code to initialize a NSDateFormatter to your specifications.
Stop wasting time wondering why their dates are not being analyzed and start using Date Format Creator.
截图:
您需要登录本站VIP账号后才能查看隐藏内容,请 点击此处 登录!