|
Joutsen
v0.4.1
|
A class representing a relative amount of time between dates. More...
Public Member Functions | |
| TimeDelta () | |
| Creates a new instance for the current culture. More... | |
| TimeDelta (DateTimeFormatInfo dateTimeInfo) | |
| Creates a new instance with specific datetime format infos. More... | |
| DateTime | ToDateTime () |
| Create a Datetime value out of the delta using the current date as the basis for missing absolute values. More... | |
| DateTime | ToDateTime (DateTime referenceDateTime) |
| Create a Datetime value out of the delta using the referenceDateTime as the basis for missing absolute values. More... | |
| DateTime | Add (DateTime dateTime) |
| Adds the delta to an existing date creating a new date representing the point in time the delta describes. More... | |
| override String | ToString () |
| override bool | Equals (object obj) |
| override int | GetHashCode () |
Static Public Member Functions | |
| static DateTime | operator+ (DateTime datetime, TimeDelta delta) |
Public Attributes | |
| const int | LAST_DAY_OF_MONTH = 31 |
| Defines the absolute month day that represents the last day of the resulting month. More... | |
| const int | LAST_WEEK_OF_YEAR = 54 |
| Defines the absolute week number that represents the last week of the resulting year. More... | |
| const int | LAST_DAY_OF_YEAR = 366 |
| Defines the absolute year day that represents the last day of the resulting year. More... | |
| const int | LAST_WEEK_OF_MONTH = 6 |
| Defines the absolute week in the month that represents the last week of a month. More... | |
| const int | LAST_WEEKDAY_OCCURANCE_IN_MONTH = 5 |
| Defines the last possible occurance in a month. More... | |
Properties | |
| int | Years [get, set] |
| The relative amount of years the delta describes. More... | |
| int | Months [get, set] |
| The relative amount of monthss the delta describes. More... | |
| int | Weeks [get, set] |
| The relative amount of weeks the delta describes. More... | |
| int | Days [get, set] |
| The relative amount of days the delta describes. More... | |
| int | Hours [get, set] |
| The relative amount of hours the delta describes. More... | |
| int | Minutes [get, set] |
| The relative amount of minutes the delta describes. More... | |
| int | Seconds [get, set] |
| The relative amount of seconds the delta describes. More... | |
| int | Milliseconds [get, set] |
| The relative amount of millisceods the delta describes. More... | |
| int | Year [get, set] |
| Absolute Values. More... | |
| int | Month [get, set] |
| The absolute month the delta describes. More... | |
| int | WeekOfYear [get, set] |
| The absolute week number the delta describes. More... | |
| int | WeekOfMonth [get, set] |
| The week offset of the weekday. More... | |
| int | DayOfMonth [get, set] |
| The absolute day in the month the delta describes. More... | |
| DayOfWeek | WeekDay [get, set] |
| The absolute day of the week the delta describes. More... | |
| int | WeekDayOccurance [get, set] |
| The occurance of the weekday within the month. More... | |
| int | DayOfYear [get, set] |
| The absolute day in the year the delta describes. More... | |
| int | Hour [get, set] |
| The absolute hour the delta describes. More... | |
| int | Minute [get, set] |
| The absolute minute the delta describes. More... | |
| int | Second [get, set] |
| The absolute second the delta describes. More... | |
| int | Millisecond [get, set] |
| The absolute millisecond the delta describes. More... | |
A class representing a relative amount of time between dates.
| Joutsen.System.TimeDelta.TimeDelta | ( | ) |
Creates a new instance for the current culture.
| Joutsen.System.TimeDelta.TimeDelta | ( | DateTimeFormatInfo | dateTimeInfo | ) |
Creates a new instance with specific datetime format infos.
| DateTime Joutsen.System.TimeDelta.Add | ( | DateTime | dateTime | ) |
Adds the delta to an existing date creating a new date representing the point in time the delta describes.
| override bool Joutsen.System.TimeDelta.Equals | ( | object | obj | ) |
| override int Joutsen.System.TimeDelta.GetHashCode | ( | ) |
|
static |
| DateTime Joutsen.System.TimeDelta.ToDateTime | ( | ) |
Create a Datetime value out of the delta using the current date as the basis for missing absolute values.
| DateTime Joutsen.System.TimeDelta.ToDateTime | ( | DateTime | referenceDateTime | ) |
Create a Datetime value out of the delta using the referenceDateTime as the basis for missing absolute values.
| override String Joutsen.System.TimeDelta.ToString | ( | ) |
| const int Joutsen.System.TimeDelta.LAST_DAY_OF_MONTH = 31 |
Defines the absolute month day that represents the last day of the resulting month.
| const int Joutsen.System.TimeDelta.LAST_DAY_OF_YEAR = 366 |
Defines the absolute year day that represents the last day of the resulting year.
| const int Joutsen.System.TimeDelta.LAST_WEEK_OF_MONTH = 6 |
Defines the absolute week in the month that represents the last week of a month.
| const int Joutsen.System.TimeDelta.LAST_WEEK_OF_YEAR = 54 |
Defines the absolute week number that represents the last week of the resulting year.
| const int Joutsen.System.TimeDelta.LAST_WEEKDAY_OCCURANCE_IN_MONTH = 5 |
Defines the last possible occurance in a month.
|
getset |
The absolute day in the month the delta describes.
|
getset |
The absolute day in the year the delta describes.
|
getset |
The relative amount of days the delta describes.
|
getset |
The absolute hour the delta describes.
|
getset |
The relative amount of hours the delta describes.
|
getset |
The absolute millisecond the delta describes.
|
getset |
The relative amount of millisceods the delta describes.
|
getset |
The absolute minute the delta describes.
|
getset |
The relative amount of minutes the delta describes.
|
getset |
The absolute month the delta describes.
|
getset |
The relative amount of monthss the delta describes.
|
getset |
The absolute second the delta describes.
|
getset |
The relative amount of seconds the delta describes.
|
getset |
The absolute day of the week the delta describes.
|
getset |
The occurance of the weekday within the month.
E.g. Second Thursday.
|
getset |
The week offset of the weekday.
By default this is 0 meaning the weekday of the current week.
|
getset |
The absolute week number the delta describes.
|
getset |
The relative amount of weeks the delta describes.
|
getset |
Absolute Values.
The absolute year the delta describes.
|
getset |
The relative amount of years the delta describes.
1.8.13