Date helper.
More...
#include <DateHelper.h>
List of all members.
Static Public Member Functions |
static std::string | GetCurrentDateString (bool withMilliseconds=true) |
| Gets a current date string.
|
static std::string | GetDateString (SYSTEMTIME currentTime, bool withMilliseconds=true) |
| Gets a date string.
|
static bool | IsLeapYear (const UINT uJahr) |
| Query if 'uJahr' is leap year.
|
static short | GetDaysInMonth (const UINT uMonat, const UINT uJahr) |
| Gets the days in month.
|
static short | GetDaysInYears (const UINT uJahr) |
| Gets the days in years.
|
static short | GetWeekday (const UINT uTag, const UINT uMonat, const UINT uJahr) |
| Gets a weekday.
|
static short | GetDayOfYear (const UINT uTag, const UINT uMonat, const UINT uJahr) |
| Gets a day of year.
|
static short | GetCalendarWeek (const UINT uTag, const UINT uMonat, const UINT uJahr) |
| Gets a calendar week.
|
static void | GetEasterDate (const UINT uJahr, UINT &uTag, UINT &uMonat) |
| Gets an easter date.
|
static void | GetFourthAdvent (const UINT uJahr, UINT &uTag, UINT &uMonat) |
| Gets a fourth advent.
|
static long | TimeDifferneceInYears (const SYSTEMTIME &Startzeit, const SYSTEMTIME &Endezeit) |
| Time differnece in years.
|
static long | TimeDifferenceInDays (const SYSTEMTIME &Startzeit, const SYSTEMTIME &Endezeit) |
| Time difference in days.
|
static SYSTEMTIME | TimeDifferenceInDays (const SYSTEMTIME &Startzeit, const long &Endezeit) |
| Time difference in days.
|
static ULONGLONG | GetMilliseconds () |
| Gets the milliseconds.
|
static _int64 | CalculateDelta (const SYSTEMTIME &st1, const SYSTEMTIME &st2) |
| Calculates the delta between the two SYSTEMTIMES.
|
Detailed Description
Date helper.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
Member Function Documentation
Calculates the delta between the two SYSTEMTIMES.
- Author:
- Christian Knobloch
- Date:
- 07.07.2011
- Parameters:
-
st1 | The first st. |
st2 | The second st. |
- Returns:
- The calculated delta.
Gets a calendar week.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
uTag | The u tag. |
uMonat | The u monat. |
uJahr | The u jahr. |
- Returns:
- The calendar week.
Gets a current date string.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
withMilliseconds | true to with milliseconds. |
- Returns:
- The current date string.
Gets a date string.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
currentTime | Time of the current. |
withMilliseconds | true to with milliseconds. |
- Returns:
- The date string.
Gets a day of year.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
uTag | The u tag. |
uMonat | The u monat. |
uJahr | The u jahr. |
- Returns:
- The day of year.
Gets the days in month.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
uMonat | The u monat. |
uJahr | The u jahr. |
- Returns:
- The days in month.
Gets the days in years.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
- Returns:
- The days in years.
Gets an easter date.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
| uJahr | The u jahr. |
[in,out] | uTag | The u tag. |
[in,out] | uMonat | The u monat. |
Gets a fourth advent.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
| uJahr | The u jahr. |
[in,out] | uTag | The u tag. |
[in,out] | uMonat | The u monat. |
Gets the milliseconds.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Returns:
- The milliseconds.
Gets a weekday.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
uTag | The u tag. |
uMonat | The u monat. |
uJahr | The u jahr. |
- Returns:
- The weekday.
Query if 'uJahr' is leap year.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
- Returns:
- true if leap year, false if not.
Time difference in days.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
Startzeit | The startzeit. |
Endezeit | The endezeit. |
- Returns:
- .
Time difference in days.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
Startzeit | The startzeit. |
Endezeit | The endezeit. |
- Returns:
- .
Time differnece in years.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
Startzeit | The startzeit. |
Endezeit | The endezeit. |
- Returns:
- .
The documentation for this class was generated from the following files: