DateTimeObject.cs 406 B

1234567891011121314151617181920212223242526272829
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. using System;
  3. namespace Org.BouncyCastle.Utilities.Date
  4. {
  5. public sealed class DateTimeObject
  6. {
  7. private readonly DateTime dt;
  8. public DateTimeObject(
  9. DateTime dt)
  10. {
  11. this.dt = dt;
  12. }
  13. public DateTime Value
  14. {
  15. get { return dt; }
  16. }
  17. public override string ToString()
  18. {
  19. return dt.ToString();
  20. }
  21. }
  22. }
  23. #endif