moby--moby/api/types/time
Sebastiaan van Stijn 48cfe3f087
Improve GetTimestamp parsing
`GetTimestamp()` "assumed" values it could not parse
to be a valid unix timestamp, and would use invalid
values ("hello world") as-is (even testing that
it did so).

This patch validates unix timestamp to be a valid
numeric value, and makes other values invalid.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2018-05-20 13:07:17 +02:00
..
duration_convert.go Add canonical import comment 2018-02-05 16:51:57 -05:00
duration_convert_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
timestamp.go Improve GetTimestamp parsing 2018-05-20 13:07:17 +02:00
timestamp_test.go Improve GetTimestamp parsing 2018-05-20 13:07:17 +02:00