Subject: [bug#67963] [PATCH v2 10/37] gnu: Add perl-datetime-format-pg.

From: Felix Lechner <[email-masked]>
Date: Tue, 16 Jan 2024 14:12:48 -0800

* gnu/packages/perl.scm (perl-datetime-format-pg): New variable.

Change-Id: I595271d5aecb6915f750ee1dd71144595359cb58
---
 gnu/packages/perl.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index e04903280a..f4fb49d9b2 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -3575,6 +3575,32 @@ (define-public perl-datetime-format-natural
 parsing logic.")
     (license (package-license perl))))
 
+(define-public perl-datetime-format-pg
+  (package
+    (name "perl-datetime-format-pg")
+    (version "0.16014")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/D/DM/DMAKI/DateTime-Format-Pg-" version
+             ".tar.gz"))
+       (sha256
+        (base32 "1f8fpv655x8w9zaa65lp1yn0pianjv5l4qvg6v1q9hsda9k9dfrq"))))
+    (build-system perl-build-system)
+    (native-inputs (list perl-module-build-tiny))
+    (propagated-inputs (list perl-datetime
+                             perl-datetime-format-builder
+                             perl-datetime-timezone))
+    (home-page "https://metacpan.org/release/DateTime-Format-Pg")
+    (synopsis "Parse and format PostgreSQL dates and times")
+    (description "This module understands the formats used by PostgreSQL
+for its DATE, TIME, TIMESTAMP, and INTERVAL data types.  It can be used
+to parse these formats in order to create DateTime or DateTime::Duration
+objects, and it can take a DateTime or DateTime::Duration object and
+produce a string representing it in a format accepted by PostgreSQL.")
+    (license license:perl-license)))
+
 (define-public perl-datetime-format-strptime
   (package
     (name "perl-datetime-format-strptime")
-- 
2.41.0