dbmonthname

Description

Determine the name of a specified month in a specified language.

Syntax

char *dbmonthname(dbproc, language, monthnum,
                shortform)
 
DBPROCESS    *dbproc;
char                   *language;
int                       monthnum;
DBBOOL            shortform;

Parameters

dbproc

A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and server.

language

The name of the desired language.

monthnum

The number of the desired month. Month numbers range from 1 (January) to 12 (December).

shortform

A Boolean value indicating whether the long or short form of the month name is desired. If shortform is “true”, dbmonthname returns the short form of the month name; if shortform is “false”, dbmonthname returns the full month name. For example, if the month name desired is the U.S. English short form for January, “Jan” is returned.

Short forms of month names are defined in localization files on a per-localization-file basis.

Returns

The name of the specified month on success; a NULL pointer on error.

Usage

See also

db12hour, dbdateorder, dbdayname, DBSETLNATLANG, dbsetopt