Borland C++ reference

_strdate

raw OCR

Converts current date to string.

Defined in header <time.h>

Syntax

#include <time.h>
char *_strdate(char *buf);

Portability

DOSUNIXWindowsANSI CC++ only
■■

Remarks

_strdate converts the current date to a string, storing the string in the buffer buf. The buffer must be at least 9 characters long.

The string has the following form: MM/DD/YY where MM, DD, and YY are all two-digit numbers representing the month, day, and year. The string is terminated by a null character.

Return value

_strdate returns buf, the address of the date string.

See also

Example

#include <time.h>
#include <stdio.h>
void main (void).
{
    char datebufl     timebuf[91
    _strdate(datebuf );
    _strtiine (timebuf) ;
    printf ("Date: %s  Time: %s\n",datebuf,timebuf)

Differences from modern implementations

Nothing recorded yet.

Modern references

These are search links, not yet checked by hand.

Extraction notes

  • heading `strdate` read as `_strdate`