diff options
author | Russ Allbery <rra@cpan.org> | 2021-09-11 15:37:49 -0700 |
---|---|---|
committer | Russ Allbery <rra@cpan.org> | 2021-09-11 15:38:09 -0700 |
commit | 739422d426e4e3ab6d7e82bc9bd2527efee1145a (patch) | |
tree | 68417ad93ed766d71b664df309eb0f0a80126784 /lib | |
parent | eadfa9ea892874fb055392b695437bde6fb34273 (diff) |
Update _datetime_to_seconds comment
We now have a Date::Parse dependency, but I still want to roll this
conversion myself for better error checking.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/App/DocKnot/Spin/Versions.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/App/DocKnot/Spin/Versions.pm b/lib/App/DocKnot/Spin/Versions.pm index 8da3949..5ba6b5f 100644 --- a/lib/App/DocKnot/Spin/Versions.pm +++ b/lib/App/DocKnot/Spin/Versions.pm @@ -25,9 +25,8 @@ use POSIX qw(mktime strftime); ############################################################################## # Parse a date/time in YYYY-mm-dd HH:MM:SS format in local time into seconds -# since epoch. This duplicates many modules (such as Date::Parse), but we -# only have a single time format that's easy to parse, so roll it ourselves to -# avoid the dependency. +# since epoch. This duplicates Date::Parse, which is already a dependency, +# but this gives us more control over the format and better error reporting. # # $date - The date component # $time - The time component |