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: programming - C - functions - asctime()(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
microprocessors - microchip 16F84A - MCLR
MC6802 - instruction set - arithmetic shift left memory
XLib Function - XLookupString
MC6802 - instruction set - arithmetic shift right memory
programming:forth
MC6802 - instruction set - increment memory
programming:DDE:WinWord DDE Server
MC6802 - instruction set - Branch if Overflow Set
programming:windows:services
MC6802 - instruction set - Software Interrupt
MC6802 - instruction set - Jump to Subroutine
software:links:embedded systems
programming:load a bitmap (bmp) file
MC6802 - instruction set - decrement memory
filename:programming - C - ctime
filename:programming%20%2D%20C%20%2D%20ctime
last edit:December 02 2012 17:11:02 (4643 days ago)
ct = 1755698059.000000 = August 20 2025 09:54:19
ft = 1354486262.000000 = December 02 2012 17:11:02
dt = 401211797.000000