Closed amilkr closed 7 years ago
The spec allows calendar:datetime() | timestamp() but it's not enough since the second function clause allows S to be float()
calendar:datetime() | timestamp()
S
float()
https://github.com/erlsci/iso8601/blob/master/src/iso8601.erl#L32
format({{Y,Mo,D}, {H,Mn,S}}) when is_float(S) ->
And that's not valid for the calendar:datetime() type (where second() = 0..59)
calendar:datetime()
second() = 0..59
The spec allows
calendar:datetime() | timestamp()
but it's not enough since the second function clause allowsS
to befloat()
https://github.com/erlsci/iso8601/blob/master/src/iso8601.erl#L32
And that's not valid for the
calendar:datetime()
type (wheresecond() = 0..59
)