New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Date from array #78
Comments
The old one [XCS] returns |
Confirmed 👌 7th field is a time is same as in In that case we can convert |
If that works (would probably warrant a test case for both Xcode 6 and 7) Good job reverse engineering it ;) That's how we do things here!
|
Fixed in buildasaurs/BuildaUtils#1 |
@czechboy0 I can't find this anywhere in code so I'll simply ask.
In some responses we're getting date but in form of array of components. Didiyou write a method or extension for handling this?
I only found
dateForKey()
andoptionalDateForKey()
but they work withString
s.We need something to get this array by calling
arrayForKey()
and returnNSDateComponents
or date formattedString
.Got any hints how you want it to be implemented? Here are my ideas:
NSDate
extension
toNSArray
which will createNSDate
orNSDateComponents
orString
In any case we'll have to manually take fields from
Array
and put them inNSDateComponents
like:Which kind of sucks...
What's more,
Array
of components we get from XCS has 7 fields and I wonder what is the 7th one... It doesn't look like a timezone... Nanoseconds?The text was updated successfully, but these errors were encountered: