Skip to content

Commit

Permalink
Add comment for constant
Browse files Browse the repository at this point in the history
  • Loading branch information
normj committed Apr 3, 2024
1 parent 509e27a commit f04e80d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace Amazon.Lambda.Serialization.Json
/// </summary>
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace Amazon.Lambda.Serialization.SystemTextJson.Converters
/// </summary>
public class DateTimeConverter : JsonConverter<DateTime>
{
// The number of seconds from DateTime.MinValue to year 5000.
private const long YEAR_5000_IN_SECONDS = 157753180800;

/// <summary>
Expand Down

0 comments on commit f04e80d

Please sign in to comment.