From f04e80d97addf62970a48657292a6663ca50372c Mon Sep 17 00:00:00 2001 From: Norm Johanson Date: Wed, 3 Apr 2024 00:17:58 -0700 Subject: [PATCH] Add comment for constant --- .../JsonNumberToDateTimeDataConverter.cs | 1 + .../Converters/DateTimeConverter.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/Libraries/src/Amazon.Lambda.Serialization.Json/JsonNumberToDateTimeDataConverter.cs b/Libraries/src/Amazon.Lambda.Serialization.Json/JsonNumberToDateTimeDataConverter.cs index 214069f4d..cba7d1e48 100644 --- a/Libraries/src/Amazon.Lambda.Serialization.Json/JsonNumberToDateTimeDataConverter.cs +++ b/Libraries/src/Amazon.Lambda.Serialization.Json/JsonNumberToDateTimeDataConverter.cs @@ -12,6 +12,7 @@ namespace Amazon.Lambda.Serialization.Json /// internal class JsonNumberToDateTimeDataConverter : JsonConverter { + // The number of seconds from DateTime.MinValue to year 5000. private const long YEAR_5000_IN_SECONDS = 157753180800; private static readonly TypeInfo DATETIME_TYPEINFO = typeof(DateTime).GetTypeInfo(); private static readonly DateTime EPOCH_DATETIME = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc); diff --git a/Libraries/src/Amazon.Lambda.Serialization.SystemTextJson/Converters/DateTimeConverter.cs b/Libraries/src/Amazon.Lambda.Serialization.SystemTextJson/Converters/DateTimeConverter.cs index 1430e62c8..f2b48dd6a 100644 --- a/Libraries/src/Amazon.Lambda.Serialization.SystemTextJson/Converters/DateTimeConverter.cs +++ b/Libraries/src/Amazon.Lambda.Serialization.SystemTextJson/Converters/DateTimeConverter.cs @@ -9,6 +9,7 @@ namespace Amazon.Lambda.Serialization.SystemTextJson.Converters /// public class DateTimeConverter : JsonConverter { + // The number of seconds from DateTime.MinValue to year 5000. private const long YEAR_5000_IN_SECONDS = 157753180800; ///