Subject: [bug#63894] [PATCH 18/55] gnu: Add perl-datetime-format-mysql.

From: Antero Mejr <[email-masked]>
Date: Sun, 4 Jun 2023 17:42:12 +0000

* gnu/packages/perl.scm (perl-datetime-format-mysql): New variable.
---
 gnu/packages/perl.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 8abb2963d1..d29c338955 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -3554,6 +3554,31 @@ (define-public perl-datetime-format-iso8601
 extension that parses almost all ISO8601 date and time formats.")
     (license license:perl-license)))
 
+(define-public perl-datetime-format-mysql
+  (package
+    (name "perl-datetime-format-mysql")
+    (version "0.0701")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://cpan/authors/id/X/XM/XMIKEW/DateTime-Format-MySQL-"
+                    version ".tar.gz"))
+              (sha256
+               (base32
+                "1pb0ri9npbwpaf1lzmm51w4wfyj96n80yg7wga7ig34c0hg4a463"))))
+    (build-system perl-build-system)
+    (native-inputs (list perl-module-build))
+    (propagated-inputs (list perl-datetime
+                             perl-datetime-format-builder))
+    (home-page "https://metacpan.org/release/DateTime-Format-MySQL")
+    (synopsis "Parse and format MySQL dates and times")
+    (description
+     "This module understands the formats used by MySQL for its DATE,
+DATETIME, TIME, and TIMESTAMP data types.  It can be used to parse these
+formats in order to create DateTime objects, and it can take a DateTime object
+and produce a string representing it in the MySQL format.")
+    (license license:perl-license)))
+
 (define-public perl-datetime-format-natural
   (package
     (name "perl-datetime-format-natural")
-- 
2.39.2