From 88c5aeebd54aaa5413175e6b9711a877f9a35a6b Mon Sep 17 00:00:00 2001 From: BobLd Date: Fri, 10 Apr 2020 14:38:59 +0100 Subject: [PATCH 1/2] Make DateFormatHelper public --- src/UglyToad.PdfPig/Util/DateFormatHelper.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/UglyToad.PdfPig/Util/DateFormatHelper.cs b/src/UglyToad.PdfPig/Util/DateFormatHelper.cs index c0c089ec..9f4f01f2 100644 --- a/src/UglyToad.PdfPig/Util/DateFormatHelper.cs +++ b/src/UglyToad.PdfPig/Util/DateFormatHelper.cs @@ -2,8 +2,20 @@ { using System; - internal static class DateFormatHelper + /// + /// Helper class for dates. + /// + public static class DateFormatHelper { + /// + /// Try parsing a pdf formated date string into a . + /// Date values used in a PDF shall conform to a standard date format, which closely + /// follows that of the international standard ASN.1, defined in ISO/IEC 8824. A date shall be a text string + /// of the form (D:YYYYMMDDHHmmSSOHH'mm). + /// + /// The pdf formated date string, e.g. D:199812231952-08'00. + /// The parsed date. + /// True if parsed. public static bool TryParseDateTimeOffset(string s, out DateTimeOffset offset) { offset = DateTimeOffset.MinValue; From b462c3bea4eb10afe0b2a76038e2f49b0fe3db13 Mon Sep 17 00:00:00 2001 From: BobLd Date: Fri, 10 Apr 2020 15:33:37 +0100 Subject: [PATCH 2/2] update PublicApiScannerTests --- src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs b/src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs index 650063c1..586bc4bc 100644 --- a/src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs +++ b/src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs @@ -196,6 +196,7 @@ "UglyToad.PdfPig.Util.Adler32Checksum", "UglyToad.PdfPig.Util.IWordExtractor", "UglyToad.PdfPig.Util.DefaultWordExtractor", + "UglyToad.PdfPig.Util.DateFormatHelper", "UglyToad.PdfPig.Writer.PdfAStandard", "UglyToad.PdfPig.Writer.PdfDocumentBuilder", "UglyToad.PdfPig.Writer.PdfMerger",