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
embedded systems - modbus - commands
microprocessors - microchip 16F84A - clock
microprocessors - microchip 16F84A - MCLR
MC6802 - instruction set - arithmetic shift left memory
XLib Function - XLookupString
programming - DDE - WinWord DDE Server
software - blender - modeling workspace
microprocessors - microchip 16F84A - eeprom
programming - target - XCB
programming - C - localtime
MC6802 - instruction set - arithmetic shift right memory
filename:programming - C - ctime
filename:programming%20%2D%20C%20%2D%20ctime
last edit:December 02 2012 17:11:02 (4532 days ago)
ct = 1746063693.000000 = April 30 2025 21:41:33
ft = 1354486262.000000 = December 02 2012 17:11:02
dt = 391577431.000000