•  Back 
  •  Libraries 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : Pure C Library Documentation
Author      : John Kormylo
Version     : LIB.HYP 1.0
Subject     : Documentation/Pure C Library
Nodes       : 1309
Index Size  : 32068
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : en
@default    : 
@help       : Help
@options    : +g -i -s +x +z -t4
@width      : 75
View Ref-File[ strftime ]

#include <time.h>

size_t strftime( char *buf, size_t maxsize, const char *format,
                 const struct tm *ptm );

  <buf> is an array to contain the formatted string.
  <maxsize> is the size of <buf> in bytes.
  <format> is a string containing Time Format Sequences.
  <ptime> points to a tm data/time data structure.


Function formats the date/time in a user defined format.
It returns the string length, or 0 on error.

See also Date & Time.