EssentialsPartialDate Class
Namespace | Skybrud.Essentials.Time |
---|---|
Assembly | Skybrud.Essentials.dll |
Visibility | Public |
Inheritance | Object |
Class representing a partial date (eg. only year and month).
public class EssentialsPartialDate { }
Properties
Type | Name | Summary |
---|---|---|
int | Year |
Gets the year, or |
int | Month |
Gets the month, or |
int | Day |
Gets the day, or |
DateTime | DateTime |
Gets an instance of EssentialsPartialDate.DateTime representing the publication date. This instance will not be realiable in the way that an instance of EssentialsPartialDate.DateTime can't represent a partial date. |
bool | HasYear |
Gets whether a year has been specified for this date. |
bool | HasMonth |
Gets whether a month has been specified for this date. |
bool | HasDay |
Gets whether a day has been specified for this date. |
bool | IsPartialDate |
Gets whether the date is partial (missing either EssentialsPartialDate.Year, EssentialsPartialDate.Month or EssentialsPartialDate.Day). |
Methods
op_Implicit(DateTime)
(static)
Initializes a new instance of EssentialsPartialDate from the specified
|
op_Implicit(DateTimeOffset)
(static)
Initializes a new instance of EssentialsPartialDate from the specified
|
op_Implicit(EssentialsDateTime)
(static)
Initializes a new instance of EssentialsPartialDate from the specified
|
Parse(string)
(static)
Converts the specified |
Parse(string, IFormatProvider)
(static)
Converts the specified |
ToString()
(virtual)
Returns a string representation of the partial date in the format of |
Converts the specified |
Converts the specified |