summary refs log tree commit diff
path: root/crypto/src/util/date/DateTimeObject.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/util/date/DateTimeObject.cs')
-rw-r--r--crypto/src/util/date/DateTimeObject.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/crypto/src/util/date/DateTimeObject.cs b/crypto/src/util/date/DateTimeObject.cs
new file mode 100644
index 000000000..793376b6d
--- /dev/null
+++ b/crypto/src/util/date/DateTimeObject.cs
@@ -0,0 +1,25 @@
+using System;
+
+namespace Org.BouncyCastle.Utilities.Date
+{
+	public sealed class DateTimeObject
+	{
+		private readonly DateTime dt;
+
+		public DateTimeObject(
+			DateTime dt)
+		{
+			this.dt = dt;
+		}
+
+		public DateTime Value
+		{
+			get { return dt; }
+		}
+
+		public override string ToString()
+		{
+			return dt.ToString();
+		}
+	}
+}