Skip to content

Period.FromMonths Method

Definition

Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: Period.cs

FromMonths(int)

Creates a period representing the specified number of months.

public static Period FromMonths(int months)

Parameters

Name Type Description
months int The number of months in the new period.

Returns

Period

A period consisting of the given number of months.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue