Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Provide a test case for the 'Z' style encoding and one for Sep 1752.

  • Loading branch information...
commit 08dbb287a66c3d117df52ede216056f7ccbb63b6 1 parent 2d87843
@jlouis authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/inet_time_tests.erl
View
4 test/inet_time_tests.erl
@@ -7,4 +7,8 @@ parse_test() ->
inet_time:parse("1984-02-29T23:20:50.52+8:0"),
{error, {invalid_date,{{1984,2,30},{23,20,50,52},{'+',8,0}}}} =
inet_time:parse("1984-02-30T23:20:50.52+8:0"),
+ {ok,{{1753,9,7},{1,0,0,0},'Z'}} =
+ inet_time:parse("1753-9-7T01:00:00Z"),
+ {error, {invalid_date,{{1752,9,7},{1,0,0,0},'Z'}}} =
+ inet_time:parse("1752-9-7T01:00:00Z"),
done.
Please sign in to comment.
Something went wrong with that request. Please try again.