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 *_strtime( char *timestr )
    wchar_t _wstrtime( wchar_t *timestr );

Description:
    The _strtime function copies the current time to the buffer pointed to
    by timestr.  The time is formatted as "HH:MM:SS" where "HH" is two
    digits representing the hour in 24-hour notation, where "MM" is two
    digits representing the minutes past the hour, and where "SS" is two
    digits representing seconds.  The buffer must be at least 9 bytes long.

    The _wstrtime function is a wide-character version of _strtime that
    operates with wide-character strings.

Returns:
    The _strtime function returns a pointer to the resulting text string
    timestr.

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

    void main()
      {
        char timebuff[9];

        printf( "%s\n", _strtime( timebuff ) );
      }

Classification:
    WATCOM

Systems:
     _strtime - All

    _wstrtime - All

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

See Also: mktime time

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