ctime

Converts a time in seconds, since 00:00:00 January 1, 1970, to an ASCII string in the form generated by the asctime function.

Format

#include  <time.h>

char *ctime  (const time_t *bintim);
Function Variants Compiling with the _DECC_V4_SOURCE and _VMS_V6_SOURCE feature- test macros defined enables a local-time-based entry point to this function that is equivalent to the behavior before OpenVMS Version 7.0.

Argument

bintim
A pointer to the time value to be converted.

Description

Successive calls to the ctime or asctime function overwrite any previous time values. The type time_t is defined in the <time.h> header file as follows:
typedef long int time_t

The ctime function behaves as if it called tzset.

Return Value
pointer  Points to the 26-character ASCII string. 


Previous Page | Next Page | Table of Contents | Index