Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GitVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ patch-version-bump-message: '\+semver:\s?(fix|patch)'
commit-message-incrementing: MergeMessageOnly
branches:
master:
mode: ContinuousDelivery
mode: ContinuousDelivery
tag:
increment: Patch
prevent-increment-of-merged-branch-version: true
Expand Down
4 changes: 4 additions & 0 deletions source/CoreLibrary.nfproj
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@
<Compile Include="System\Collections\Stack.cs" />
<Compile Include="System\ComponentModel\EditorBrowsableAttribute.cs" />
<Compile Include="System\Convert.cs" />
<Compile Include="System\DateTime.cs" />
<Compile Include="System\DayOfWeek.cs" />
<Compile Include="System\DBNull.cs" />
<Compile Include="System\Decimal.cs" />
<Compile Include="System\Delegate.cs" />
Expand All @@ -96,6 +98,8 @@
<Compile Include="System\FlagsAttribute.cs" />
<Compile Include="System\GC.cs" />
<Compile Include="System\Globalization\CultureInfo.cs" />
<Compile Include="System\Globalization\DateTimeFormat.cs" />
<Compile Include="System\Globalization\DateTimeFormatInfo.cs" />
<Compile Include="System\Globalization\NumberFormatInfo.cs" />
<Compile Include="System\Guid.cs" />
<Compile Include="System\IAsyncResult.cs" />
Expand Down
656 changes: 656 additions & 0 deletions source/System/DateTime.cs

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions source/System/DayOfWeek.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
//
// Copyright (c) 2017 The nanoFramework project contributors
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
// See LICENSE file in the project root for full license information.
//

namespace System
{
/// <summary>
/// Specifies the day of the week.
/// </summary>
[Serializable]
public enum DayOfWeek
{
/// <summary>
/// Indicates Sunday
/// </summary>
Sunday = 0,
/// <summary>
/// Indicates Monday
/// </summary>
Monday = 1,
/// <summary>
/// Indicates Tuesday
/// </summary>
Tuesday = 2,
/// <summary>
/// Indicates Wednesday
/// </summary>
Wednesday = 3,
/// <summary>
/// Indicates Thursday
/// </summary>
Thursday = 4,
/// <summary>
/// Indicates Friday
/// </summary>
Friday = 5,
/// <summary>
/// Indicates Saturday
/// </summary>
Saturday = 6,
}
}
15 changes: 15 additions & 0 deletions source/System/Globalization/CultureInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ namespace System.Globalization
public class CultureInfo /*: ICloneable , IFormatProvider*/
{
internal NumberFormatInfo _numInfo = null;
internal DateTimeFormatInfo _dateTimeInfo = null;
internal string _cultureInfoName = "";
internal string _name = null;
[NonSerialized]
Expand Down Expand Up @@ -138,5 +139,19 @@ public virtual NumberFormatInfo NumberFormat
return _numInfo;
}
}

/// <summary>
/// Gets a DateTimeFormatInfo that defines the culturally appropriate format of displaying dates and times.
/// </summary>
/// <value>A DateTimeFormatInfo that defines the culturally appropriate format of displaying dates and times.</value>
public virtual DateTimeFormatInfo DateTimeFormat
{
get
{
if (_dateTimeInfo == null) _dateTimeInfo = new DateTimeFormatInfo(this);

return _dateTimeInfo;
}
}
}
}
Loading