From 88c5aeebd54aaa5413175e6b9711a877f9a35a6b Mon Sep 17 00:00:00 2001 From: BobLd Date: Fri, 10 Apr 2020 14:38:59 +0100 Subject: [PATCH] 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;