This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hu.akarnokd.rxjava.interop.RxJavaInterop | |
// ----------------------------------------------------------------------------------------- | |
// Conversions from 1.x to 2.x | |
// ----------------------------------------------------------------------------------------- | |
fun <T> rx.Observable<T>.toV2Flowable(): io.reactivex.Flowable<T> = RxJavaInterop.toV2Flowable(this) | |
fun <T> rx.Observable<T>.toV2Observable(): io.reactivex.Observable<T> = RxJavaInterop.toV2Observable(this) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Inspired by http://cokere.com/RFC3339Date.txt | |
All rights deserve to Chad Okere | |
*/ | |
@implementation DateUtil | |
+ (NSDate *)parseRFC3339Date:(NSString *)date { | |
NSDate *parsedDate = nil; | |
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Inspired by http://cokere.com/RFC3339Date.txt | |
All rights deserve to Chad Okere | |
*/ | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
import java.util.Locale; | |
import java.util.TimeZone; |