Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <time.h>
    char *_strdate( char *datestr )
    wchar_t _wstrdate( wchar_t *datestr );

Description:
    The _strdate function copies the current date to the buffer pointed to
    by datestr.  The date is formatted as "MM/DD/YY" where "MM" is two
    digits representing the month, where "DD" is two digits representing the
    day, and where "YY" is two digits representing the year.  The buffer
    must be at least 9 bytes long.

    The _wstrdate function is a wide-character version of _strdate that
    operates with wide-character strings.

Returns:
    The _strdate function returns a pointer to the resulting text string
    datestr.

Example:
    #include <stdio.h>
    #include <time.h>

    void main()
      {
        char datebuff[9];

        printf( "%s\n", _strdate( datebuff ) );
      }

Classification:
    WATCOM

Systems:
     _strdate - All

    _wstrdate - All

See Also:
    asctime, ctime, gmtime, localtime, mktime, _strtime, time, tzset

See Also: mktime time

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson