My Project
SallyAPI::Date::DateHelper Class Reference

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

_int64 DateHelper::CalculateDelta ( const SYSTEMTIME &  st1,
const SYSTEMTIME &  st2 
) [static]

Calculates the delta between the two SYSTEMTIMES.

Author:
Christian Knobloch
Date:
07.07.2011
Parameters:
st1The first st.
st2The second st.
Returns:
The calculated delta.
short DateHelper::GetCalendarWeek ( const UINT  uTag,
const UINT  uMonat,
const UINT  uJahr 
) [static]

Gets a calendar week.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
uTagThe u tag.
uMonatThe u monat.
uJahrThe u jahr.
Returns:
The calendar week.
std::string DateHelper::GetCurrentDateString ( bool  withMilliseconds = true) [static]

Gets a current date string.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
withMillisecondstrue to with milliseconds.
Returns:
The current date string.
std::string DateHelper::GetDateString ( SYSTEMTIME  currentTime,
bool  withMilliseconds = true 
) [static]

Gets a date string.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
currentTimeTime of the current.
withMillisecondstrue to with milliseconds.
Returns:
The date string.
short DateHelper::GetDayOfYear ( const UINT  uTag,
const UINT  uMonat,
const UINT  uJahr 
) [static]

Gets a day of year.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
uTagThe u tag.
uMonatThe u monat.
uJahrThe u jahr.
Returns:
The day of year.
short DateHelper::GetDaysInMonth ( const UINT  uMonat,
const UINT  uJahr 
) [static]

Gets the days in month.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
uMonatThe u monat.
uJahrThe u jahr.
Returns:
The days in month.
short DateHelper::GetDaysInYears ( const UINT  uJahr) [static]

Gets the days in years.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
uJahrThe u jahr.
Returns:
The days in years.
void DateHelper::GetEasterDate ( const UINT  uJahr,
UINT &  uTag,
UINT &  uMonat 
) [static]

Gets an easter date.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
uJahrThe u jahr.
[in,out]uTagThe u tag.
[in,out]uMonatThe u monat.
void DateHelper::GetFourthAdvent ( const UINT  uJahr,
UINT &  uTag,
UINT &  uMonat 
) [static]

Gets a fourth advent.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
uJahrThe u jahr.
[in,out]uTagThe u tag.
[in,out]uMonatThe u monat.
ULONGLONG DateHelper::GetMilliseconds ( ) [static]

Gets the milliseconds.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The milliseconds.
short DateHelper::GetWeekday ( const UINT  uTag,
const UINT  uMonat,
const UINT  uJahr 
) [static]

Gets a weekday.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
uTagThe u tag.
uMonatThe u monat.
uJahrThe u jahr.
Returns:
The weekday.
bool DateHelper::IsLeapYear ( const UINT  uJahr) [static]

Query if 'uJahr' is leap year.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
uJahrThe u jahr.
Returns:
true if leap year, false if not.
long DateHelper::TimeDifferenceInDays ( const SYSTEMTIME &  Startzeit,
const SYSTEMTIME &  Endezeit 
) [static]

Time difference in days.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
StartzeitThe startzeit.
EndezeitThe endezeit.
Returns:
.
SYSTEMTIME DateHelper::TimeDifferenceInDays ( const SYSTEMTIME &  Startzeit,
const long &  Endezeit 
) [static]

Time difference in days.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
StartzeitThe startzeit.
EndezeitThe endezeit.
Returns:
.
long DateHelper::TimeDifferneceInYears ( const SYSTEMTIME &  Startzeit,
const SYSTEMTIME &  Endezeit 
) [static]

Time differnece in years.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
StartzeitThe startzeit.
EndezeitThe endezeit.
Returns:
.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines