up: programming - c - time relatedprev: programming - c - functions - clock()next: programming - c - difftime
programming:c:ctimeWhat links here?
Convert time_t value to string

Converts the time_t object pointed by timer to a C string containing a human-readable version of the corresponding local time and date.

The returned string has the following format:

Www Mmm dd hh:mm:ss yyyy


Where Www is the weekday, Mmm the month in letters, dd the day of the month, hh:mm:ss the time, and yyyy the year.

The string is followed by a new-line character ('\n') and the terminating null-character.

This function is equivalent to: char* asctime(const struct tm* timeptr)(localtime(timer)).



Parameters



Return Value

A C string containing the date and time information in a human-readable format. The array which holds this string is statically allocated and shared by both the ctime and asctime functions. Each time either one of these functions is called the content of this array is overwritten.
programming:c:ctime
MC6802 - instruction set - complement memory
programming:DDE:PROGMAN DDE Server
programming - windows - services
file formats - PDF - stream objects
filename:programming:c:ctime
filename:programming%3Ac%3Actime
last edit:April 19 2012 22:00:24 (4758 days ago)
ct = 1746063611.000000 = April 30 2025 21:40:11
ft = 1334887224.000000 = April 19 2012 22:00:24
dt = 411176387.000000