EasyManua.ls Logo

Texas Instruments TI-89 - Loc_Formatdate

Texas Instruments TI-89
1398 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
934
Appendix A: System Routines — Operating System
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
LOC_formatDate
Declaration:
void
LOC_formatDate
(char const *
format
, int
y
, int
m
, int
d
, char
date
[])
Category(ies):
Operating System, Apps
Description:
Formats date according to
format
string.
Inputs:
format
String containing date specifiers:
D One- or two-digit day of month.
DD Two-digit day of month (leading zero if
necessary).
M One- or two-digit month.
MM Two-digit month (leading zero if necessary).
YY Two-digit year (year without century).
YYYY Four-digit year.
Any other characters are copied to output.
y
Year.
m
Month.
d
Day of month.
Outputs:
date
String containing formatted date. Caller must supply buffer
long enough to contain formatted date and terminating zero
byte.
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also:
LOC_getLocalDateFormat, LOC_localVersionDate
Example:
char formattedDate[16];
int y = 2000, m = 6, d = 9;
LOC_formatDate("M/D/YYYY", y, m, d, formattedDate); /* 6/9/2000 */
LOC_formatDate("YYYY.MM.DD", y, m, d, formattedDate); /* 2000.06.09 */
LOC_formatDate("D-M-YY", y, m, d, formattedDate); /* 9-6-00 */
LOC_formatDate("MM/YYYY", y, m, d, formattedDate); /* 06/2000 */

Table of Contents

Other manuals for Texas Instruments TI-89

Related product manuals