Commit Graph

15 Commits

Author SHA1 Message Date
Nathan Fisher
f73aeb7769 Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/epoch-rs into odin 2024-12-15 19:01:15 -05:00
Nathan Fisher
10faf03a0f Update deps 2024-12-15 19:00:58 -05:00
e1c975ba74 Adjust DateTime::now() by adding DateTimeError 2024-06-16 23:48:38 -04:00
ffea975527 Add DateTime::now method 2024-05-19 18:54:50 -04:00
43f39fe226 Simplify some calculations 2024-02-09 10:59:09 -05:00
559cfa3cb3 Add some docs 2024-02-09 00:24:04 -05:00
e2910695d2 Add tests for negative timestamps / DateTime before Unix Epoch 2024-02-09 00:03:24 -05:00
Nathan Fisher
b3ea308997 Fix some logic errors (requires testing) 2024-02-08 19:06:49 -05:00
9563b1da0d Make DateTime impl Copy 2024-01-30 20:57:36 -05:00
a440e730fa Make serde optional 2024-01-30 20:47:11 -05:00
c0def257fb Capitalize "UTC" when pretty-printing 2024-01-30 00:24:56 -05:00
3594cfafdf Fix Weekday calculation to skip using TimeZone when converting DateTime to timestamp, so that the calculated weekday will match local time rather than UTC. 2024-01-30 00:22:52 -05:00
0c77774f34 Add display methods for pretty print; TODO: Use naive conversion to timestamp when getting Weekday. Currently, since we convert to UTC the returned value is invalid if it is a different day in the offset timezone 2024-01-30 00:15:56 -05:00
Nathan Fisher
34edb7522d Add tests for ordering, conversion and formatting DateTime struct 2024-01-29 19:02:09 -05:00
40470e1752 Initial commit 2024-01-29 10:58:27 -05:00