mirraj2 / EZDB

Java MySQL API
MIT License
12 stars 9 forks source link

Add ability to parse `Instant` out of a date string. #14

Closed mikhail-ender closed 2 years ago

mikhail-ender commented 2 years ago

This is useful because the existing methods allow you to parse a LocalDateTime only. This class requires extra information about zone or offset to be able to precisely identify a moment in time. Using Instant is a much better approach, and works regardless of JVM or OS time zone settings, handles DST etc.