
GeoBASIC Reference Manual
6. System Functions
TPS1100-Version 2.10
6-187
6.5.3 CSV_GetDateTime
Description
Get the date and the time of the system.
Declaration
CSV_GetDateTime(
DateAndTime AS Date_Time_Type )
Remarks
The
CSV_GetDateTime
routine reads the date and the time
from the system's real-time clock (RTC) and returns the values in
the structure
Date_Time_Type
. In the case of TPS_Sim the
system clock will be read.
Parameters
DateAndTime
out
The structure for the date and the time.
Return Codes
RC_UNDEFINED
The date and time is not set (not
yet/not any longer).
Example
The example uses the
CSV_GetDateTime
routine to get the
date and the time of the system and displays the values.
DIM DT AS Date_Time_Type
ON ERROR RESUME
CSV_GetDateTime( DT )
IF ERR = RC_OK THEN
MMI_PrintInt(
0, 0, 5, DT.Date.iYear, TRUE
)
MMI_PrintInt(
6, 0, 3, DT.Date.iMonth, TRUE )
MMI_PrintInt( 10, 0, 3, DT.Date.iDay, TRUE
)
MMI_PrintInt(
0, 1, 3, DT.Time.iHour, TRUE
)
MMI_PrintInt(
4, 1, 3, DT.Time.iMinute, TRUE)
MMI_PrintInt(
8, 1, 3, DT.Time.iSecond, TRUE)
ELSEIF ERR = RC_UNDEFINED THEN
MMI_PrintStr(
0, 0,
"Date and time not set.", TRUE )
ELSE
MMI_PrintStr(
0, 0,
"Unexpected error code.", TRUE )
END IF
Содержание tps1100
Страница 1: ...GeoBASIC FOR TPS1100 User Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 150: ...GeoBASIC FOR TPS1100 Reference Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 411: ...GeoBASIC Reference Manual 6 System Functions TPS1100 Version 1 30 6 7 6 5 35 CSV_LibCallAvailable 6 213 ...
Страница 620: ...TPS1100 Version 2 10 6 1 ...
Страница 621: ......
Страница 623: ...TPS1100 Version 2 10 6 1 ...
Страница 624: ......
Страница 1053: ...TPS1100 Version 1 30 E 1 Appendix E GEOFONT ...
Страница 1154: ...GeoBASIC Reference Manual Appendix J List of Predefined Identifiers TPS1100 Version 1 30 J 9 TMC_SetOffsetDist 6 128 ...