lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [10/11] lucenenet git commit: Changed member accessibility of NumberDateFormat.GetDateFormat() to public and added documentation.
Date Wed, 07 Dec 2016 13:48:28 GMT
Changed member accessibility of NumberDateFormat.GetDateFormat() to public and added documentation.


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/7f6df91d
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/7f6df91d
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/7f6df91d

Branch: refs/heads/master
Commit: 7f6df91d9f1c15998a3ae218624a583f90e53ee4
Parents: 6ef84c3
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Wed Dec 7 19:50:23 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Wed Dec 7 20:29:02 2016 +0700

----------------------------------------------------------------------
 .../Flexible/Standard/Config/NumberDateFormat.cs             | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/7f6df91d/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
index 9d65a3b..ceb04db 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
@@ -99,7 +99,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
             return new DateTime(EPOCH).AddMilliseconds(Convert.ToInt64(number)).ToString(GetDateFormat(),
this.locale);
         }
 
-        internal string GetDateFormat()
+        /// <summary>
+        /// Returns the .NET date format that will be used to Format the date.
+        /// Note that parsing the date uses <see cref="DateTime.Parse(string, IFormatProvider)"/>,
which
+        /// does not require a format.
+        /// </summary>
+        // LUCENENET specific
+        public string GetDateFormat()
         {
             if (dateFormat != null) return dateFormat;
 


Mime
View raw message