- #2881 Revert "Merge pull request #2746 from mbad0la:develop" Sep->Sept
- #2868 Add format and parse token Y, so it actually works
- #2865 Use typeof checks for undefined for global variables
- #2858 Fix Date mocking regression introduced in 2.11.0
- #2864 Include changelog in npm release
- #2830 dep: add grunt-cli
- #2869 Fix months parsing for some locales
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
This target ensures that iOS Frameworks and XCFrameworks are collected from NuGet packages when using Hot Restart. | |
_UnpackHotRestartFrameworkAssemblies doesn't work for NuGet packages, because the frameworks aren't stored as embedded resources, but just files in the package. | |
--> | |
<Target Name="_CollectHotRestartFrameworksFromPackages" BeforeTargets="_CollectHotRestartFrameworks" Condition="'$(IsHotRestartBuild)' == 'true'"> | |
<!-- | |
Find all resources within NuGet packages. | |
For example, a package with assembly Foo.dll will have an adjacent Foo.resources folder or a Foo.resources.zip file. | |
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MIT License | |
Copyright (c) 2022 Matt Johnson-Pint | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static int DaysBetween(DateOnly startDate, DateOnly endDate) | |
{ | |
return endDate.DayNumber - startDate.DayNumber; | |
} | |
public static (int Months, int Days) MonthsAndDaysBetween(DateOnly startDate, DateOnly endDate) | |
{ | |
int months = (endDate.Year - startDate.Year) * 12 + endDate.Month - startDate.Month; | |
DateOnly testDate = startDate.AddMonths(months); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.AspNetCore.Mvc.ModelBinding; | |
namespace MyNameSpace | |
{ | |
public class PathModelBinderAttribute : ModelBinderAttribute | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
namespace PreciseTimeTest | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
Console.WriteLine("------------------------------------"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Egypt Standard Time] | |
"TZI"=hex:88,ff,ff,ff,00,00,00,00,c4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,\ | |
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Egypt Standard Time\Dynamic DST] | |
"2016"=hex:88,ff,ff,ff,00,00,00,00,c4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,\ | |
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00 | |
"2017"=- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE supplementalData SYSTEM "../../common/dtd/ldmlSupplemental.dtd"> | |
<!-- | |
Copyright © 1991-2013 Unicode, Inc. | |
CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/) | |
For terms of use, see http://www.unicode.org/copyright.html | |
--> | |
<supplementalData> | |
<version number="$Revision$"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"International Date Line West":"Pacific/Midway", | |
"Midway Island":"Pacific/Midway", | |
"American Samoa":"Pacific/Pago_Pago", | |
"Hawaii":"Pacific/Honolulu", | |
"Alaska":"America/Juneau", | |
"Pacific Time (US & Canada)":"America/Los_Angeles", | |
"Tijuana":"America/Tijuana", | |
"Mountain Time (US & Canada)":"America/Denver", | |
"Arizona":"America/Phoenix", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.Globalization; | |
namespace DateTimeToIsoStringPerfTests | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
NewerOlder