EasyManuals Logo
Home>Texas Instruments>Calculator>TI-89

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #976 background imageLoading...
Page #976 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals