Skip to content

Commit c9a9979

Browse files
Merge pull request #5542 from majobara-ms/master
The return value string express day number by 2 charactors filled with space, not 0 , same as asctime.
2 parents ebcccba + f8a9fa4 commit c9a9979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/c-runtime-library/reference/ctime-s-ctime32-s-ctime64-s-wctime-s-wctime32-s-wctime64-s.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Zero if successful. If there's a failure due to an invalid parameter, the invali
109109

110110
The **`ctime_s`** function converts a time value stored as a [`time_t`](../standard-types.md) structure into a character string. The *`sourceTime`* value is typically obtained from a call to [`time`](time-time32-time64.md), which returns the number of seconds elapsed since midnight (00:00:00), January 1, 1970, coordinated universal time (UTC). The return value string contains exactly 26 characters and has the form:
111111

112-
`Wed Jan 02 02:03:55 1980\n\0`
112+
`Wed Jan 2 02:03:55 1980\n\0`
113113

114114
A 24-hour clock is used. All fields have a constant width. The new line character ('\n') and the null character ('\0') occupy the last two positions of the string.
115115

0 commit comments

Comments
 (0)