background image
C H A P T E R 2 0
Localizing Newton Applications
Summary of Localization Functions
20-15
StringToTime(
timeString
)
TimeStr(
time
,
timeStrSpec
)
Date Frame Functions
20
These functions convert system clock values to or from date frames. A system
clock value is an integer giving the number of minutes since midnight, January 1,
1904 or the number of seconds since midnight, January 1, 1993; a date frame has
slots with day, date, year, and so on. See Table 17-8 (page 17-27) in Newton
Programmer's Reference
for details of a date frame.
Date(
time
)
DateFromSeconds(
timeInSeconds
)
TotalMinutes(
dateFrame
)
TotalSeconds(
dateFrame
)
System Clock Functions
20
These functions get and set system clock values, and convert those values between
seconds and minutes.
IncrementMonth(
time
,
numMonths
)
SetTime(
time
)
SetTimeInSeconds(
time
)
Ticks()
Time()
TimeInSeconds()
TimeInSecondsToTime(
seconds
)
TimeToTimeInSeconds(
minutes
,
extraSeconds
)
Utility Functions
20
These functions perform tasks related to the presentation of data in regionalized
formats.
GetDateStringSpec(
formatArray
)
GetLanguageEnvironment() // platform file function
IsValidDate(
date
)
SetCountryClass(
countryName
)
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна