Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class NodaTime.​PeriodBuilder
Assembly: NodaTime
Inheritance: object → PeriodBuilder
Implemented Interfaces
A mutable builder class for <see cref="T:NodaTime.Period" /> values. Each property can be set independently, and then a Period can be created from the result using the <see cref="M:NodaTime.PeriodBuilder.Build" /> method.
Properties
public
int
Years
Gets or sets the number of years within the period.
public
int
Months
Gets or sets the number of months within the period.
public
int
Weeks
Gets or sets the number of weeks within the period.
public
int
Days
Gets or sets the number of days within the period.
public
long
Hours
Gets or sets the number of hours within the period.
public
long
Minutes
Gets or sets the number of minutes within the period.
public
long
Seconds
Gets or sets the number of seconds within the period.
public
long
Milliseconds
Gets or sets the number of milliseconds within the period.
public
long
Ticks
Gets or sets the number of ticks within the period.
public
long
Nanoseconds
Gets or sets the number of nanoseconds within the period.
public
long
Item
Methods
Returns A period containing the values from this builder.
AddSchema​(System.​Xml.​Schema.​XmlSchemaSet xmlSchemaSet)
Adds the XML schema type describing the structure of the <see cref="T:NodaTime.PeriodBuilder" /> XML serialization to the given <paramref name="xmlSchemaSet" /> .
Returns The qualified name of the schema type that was added to the <paramref name="xmlSchemaSet" /> .
xmlSchemaSet
The XML schema set provided by <see cref="T:System.Xml.Serialization.XmlSchemaExporter" /> .
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object