Initial import.
This commit is contained in:
25
RSXML/RSDateParser.h
Normal file
25
RSXML/RSDateParser.h
Normal file
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// RSDateParser.h
|
||||
// RSXML
|
||||
//
|
||||
// Created by Brent Simmons on 3/25/15.
|
||||
// Copyright (c) 2015 Ranchero Software, LLC. All rights reserved.
|
||||
//
|
||||
|
||||
@import Foundation;
|
||||
|
||||
|
||||
/*Common web dates -- RFC 822 and 8601 -- are handled here:
|
||||
the formats you find in JSON and XML feeds.
|
||||
|
||||
Any of these may return nil. They may also return garbage, given bad input.*/
|
||||
|
||||
|
||||
NSDate *RSDateWithString(NSString *dateString);
|
||||
|
||||
/*If you're using a SAX parser, you have the bytes and don't need to convert to a string first.
|
||||
It's faster and uses less memory.
|
||||
(Assumes bytes are UTF-8 or ASCII. If you're using the libxml SAX parser, this will work.)*/
|
||||
|
||||
NSDate *RSDateWithBytes(const char *bytes, NSUInteger numberOfBytes);
|
||||
|
||||
Reference in New Issue
Block a user