Index of Section 3 Manual Pages

Interix / SUAasctime_r.3Interix / SUA

asctime_r(3)                                               asctime_r(3)

  asctime()

  NAME

    asctime(), asctime_r() - transform binary date and time value to ASCII

  SYNOPSIS

    #include 
    #include 

    char * asctime (const struct tm *tm)

    char * asctime_r (const struct tm *tm, char *buf)

  DESCRIPTION

    The asctime(3) function converts a timer structure tm identified by tm to
    the form

    Thu Nov 24 18:22:48 1986\n\0

    External declarations as well as the tm structure definition are in the
     include file. The tm structure includes at least the following
    fields:
    int     tm_sec;       seconds (0 - 60)

    int     tm_min;       minutes (0 - 59)

    int     tm_hour;      hours (0 - 23)

    int     tm_mday;      day of month (1 - 31)

    int     tm_mon;       month of year (0 - 11)

    int     tm_year;      year - 1900

    int     tm_wday;      day of week (Sunday = 0)

    int     tm_yday;      day of year (0 - 365)

    int     tm_isdst;     is summer time in effect?

    The reentrant asctime_r(3) function converts the time in the structure
    pointed to by tm into a string (of the same form as that returned by
    asctime(3)), places the string in the buffer identified by buf, and then
    returns buf. The specified buffer must contain at least 26 bytes.

  SEE ALSO

    date(1)

    ctime(3)

    getenv(3)

    gmtime(3)

    localtime(3)

    time(2)

    tzset(3)

  USAGE NOTES

    The asctime_r function is thread safe. The asctime function is not thread
    safe.

    None of these functions are async-signal safe.


Interix / SUAHosted at SUA Community for Interix, SUA and SFUInterix / SUA