ascftime man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

CFTIME(3)		 BSD Library Functions Manual		     CFTIME(3)

     cftime, ascftime ā€” convert date and time to string

     Compatibility Library (libcompat, -lcompat)

     #include <time.h>

     cftime(char *s, char *format, const time_t *clock);

     ascftime(char *s, const char *format, const struct tm *tmptr);

     The cftime() and ascftime() functions are made obsolete by strftime(3).

     Use of the functions cftime() and ascftime() is strongly deprecated,
     since there is no way to check for a buffer overflow condition.  Use
     strftime(3) instead.

     The ascftime() function is almost identical to strftime(3), with the only
     exception that there is no parameter to tell about the maximal buffer
     length, and the format parameter defaults to ā€œ%Cā€ if a NULL pointer is

     The cftime() function does the same job, but it first invokes
     localtime(3) in order to convert the given clock, then also performs the
     conversions as requested by the format argument.

     The cftime() and ascftime() functions return the number of characters
     written to the output buffer s, not counting the trailing null character.

     localtime(3), strftime(3)

BSD				 June 15, 1993				   BSD

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net