Date and Calendar Analytics
Country's Calendar based Calculations.

functions for calendar-based date calculations for a given country. More...

Functions

int __stdcall SFDB_ISVALIDCNTRYCODE (LPCTSTR argCode)
 Return TRUE if the country code is a valid ISO country code (2 or 3 characters)
 
int __stdcall SFDB_GETWKNDFROMCNTRY (LPCTSTR argCode, LPTSTR retVal, size_t *nLen)
 Return the weekend code (i.e. 7 characters) associated with the given country.
 
int __stdcall SFDB_GETCALFROMCNTRY (LPCTSTR argCode, LPTSTR retVal, size_t *nLen)
 Return the calendar code associated with the given country.
 

Detailed Description

Function Documentation

◆ SFDB_GETCALFROMCNTRY()

int __stdcall SFDB_GETCALFROMCNTRY ( LPCTSTR argCode,
LPTSTR retVal,
size_t * nLen )
Parameters
[in]argCode(Required) the ISO country code (e.g. US, GB, USA, GBR, etc.).
[out]retVal(Required) the buffer that will receive the calendar code.
[in,out]nLen(Required) The maximum number of characters to copy to the buffer.
Returns
status code of the function call: zero = success, positive = success with a warning, and negative = error occurred.
Return values
NDK_SUCCESSsuccess
NDK_FAILEDerror
See also
SFDB_ISWRKDY()

returns thecalendar code of the given country.

Remarks
Example
Requirements
Target Platform Windows
Header SFDBM.h (include Windows.h)
Library SFDBM.lib
DLL SFDBM.dll
Since
v1.68

◆ SFDB_GETWKNDFROMCNTRY()

int __stdcall SFDB_GETWKNDFROMCNTRY ( LPCTSTR argCode,
LPTSTR retVal,
size_t * nLen )
Parameters
[in]argCode(Required) the ISO country code (e.g. US, GB, USA, GBR, etc.).
[out]retVal(Required) the buffer that will receive the weekend code.
[in,out]nLen(Required) The maximum number of characters to copy to the buffer.
Returns
status code of the function call: zero = success, positive = success with a warning, and negative = error occurred.
Return values
NDK_SUCCESSsuccess
NDK_FAILEDerror
See also
SFDB_ISWRKDY()

returns the weekend convention of the government calendar of the given country.

Remarks
Example
Requirements
Target Platform Windows
Header SFDBM.h (include Windows.h)
Library SFDBM.lib
DLL SFDBM.dll
Since
v1.68

◆ SFDB_ISVALIDCNTRYCODE()

int __stdcall SFDB_ISVALIDCNTRYCODE ( LPCTSTR argCode)
Parameters
[in]argCode(Required) the ISO country code (e.g. US, GB, USA, GBR, etc.).
Returns
status code of the function call: NDK_TRUE, NDK_FALSE, and negative = error occurred.
Return values
NDK_TRUEthe given code is a valid ISO country code
NDK_FALSEthe given code is not a valid/supported country code
NDK_FAILEDOperation was unsuccessful.
See also
SFDB_ISWRKDY()

examines if the given code is a valid 2 or 3 character country ISO code.

Remarks
Example
Requirements
Target Platform Windows
Header SFDBM.h (include Windows.h)
Library SFDBM.lib
DLL SFDBM.dll
Since
v1.68