Skip to content

Commit

Permalink
rewrite ISO8601 parser
Browse files Browse the repository at this point in the history
  • Loading branch information
graebm committed Mar 1, 2024
1 parent 91dbc47 commit c3597d3
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 283 deletions.
3 changes: 3 additions & 0 deletions include/aws/common/date_time.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ AWS_COMMON_API void aws_date_time_init_epoch_secs(struct aws_date_time *dt, doub
* Initializes dt to be the time represented by date_str in format 'fmt'. Returns AWS_OP_SUCCESS if the
* string was successfully parsed, returns AWS_OP_ERR if parsing failed.
*
* The parser is lenient regarding AWS_DATE_FORMAT_RFC822 vs AWS_DATE_FORMAT_ISO_8601_BASIC.
* Regardless of which you pass in, both "2002-10-02T08:05:09Z" and "20021002T080509Z" would be accepted.
*
* Notes for AWS_DATE_FORMAT_RFC822:
* If no time zone information is provided, it is assumed to be local time (please don't do this).
*
Expand Down
Loading

0 comments on commit c3597d3

Please sign in to comment.