コード例 #1
0
            public UTCDateTimeConverter(IDateTimeHelper dateTimeHelper, DateTimeConverterBase innerConverter)
            {
                Guard.NotNull(innerConverter, nameof(innerConverter));

                _dateTimeHelper = dateTimeHelper;
                _innerConverter = innerConverter;
            }
コード例 #2
0
            public UTCDateTimeConverter(IDateTimeHelper dateTimeHelper, DateTimeConverterBase innerConverter)
            {
                Guard.ArgumentNotNull(() => innerConverter);

                _dateTimeHelper = dateTimeHelper;
                _innerConverter = innerConverter;
            }
 public SplitDateTimeJsonConverter(DateTimeConverterBase fallbackConverter)
 {
     this.fallbackConverter = fallbackConverter;
 }
 public CustomDateTimeConverter(string dateFormat = null, DateTimeConverterBase innerConverter = null)
 {
     this.dateFormat     = dateFormat;
     this.innerConverter = innerConverter ?? new IsoDateTimeConverter();
 }