MMCC MASTHEAD


INDEX
ALSO SEE:

v1.10
Mid-Michigan Computer Consultants, Inc.
509 Center
Bay City, Michigan

Sales (989) 892-9242             Support (989) 686-8860

ANSI Standard PL/B Language
CLOCK
NOTE TO OUR READERS
This web resource is written for our own use. But we feel strongly that the PL/B language should be shared with the software community. So feel free to use this at will! BUT PLEASE... if you find errors or omissions or have a better way to do something. TELL US! Dialog helps us all. Send e-mail to: support@mmcctech.com

CLOCK INI
Use this to recover items from the current INI file.
           MOVE    "inilabel",WORK_STRING
           CLOCK   INI,WORK_STRING
If your INI file includes sections you can identify variables within those sections by prefacing the ini variable with the section name as follows:

PLBWIN.INI FILE
[environment]
PLB_TERM=ansi
PLB_SYSTEM=c:\SUNBELT\current
PLB_PATH=H:\MMCC-win\SHOP-SYS
PLBWIN_ICON=HOMESPNw.ICO
[SHOP-SYS]
SHOP_SYS=HSP
SHOP_PORT=02
SHOP_PORTNAME=Library machine
SHOP_SUPERVISOR=Y
CLOCK INI statement examples
           MOVE    "SHOP-SYS;SHOP_PORT",WORK_STRING
           CLOCK   INI,WORK_STRING
           IF OVER
               ..... variable not found
             ELSE
               ..... variable was just fine
           ENDIF
CLOCK KEYWORDS
Operation Returns the ...
DATE current system date (character string - mm-dd-yy).
DAY current system day (character string - ddd).
ENV environment table variables (character string).(non-ANSI)
ERROR last error code that occurred (character string).
INI retrieves the value associated with the keyword specified in {dest} from the current ini file. (non-ANSI)
PORT current system port ID and screen characteristics (character string - 51 byte max., first 2 (or 3) bytes are port ID 'nn').
SYSPORT unique system port ID on certain multi-user systems or the standard port ID on all others (character string - 12 byte max.). (non-ANSI)
TIME current system time (character string - hh:mm:ss.xxxxxx). PL/B for Linux is accurate to the microsecond. Windows returns zeros for each of the last three digits and is only accurate to the millisecond.
TIMESTAMP current system date and time (character string - yyyymmddhhmmsssss). PL/B for Linux is accurate to the microsecond. Windows returns zeros for each of the last three digits and is only accurate to the millisecond.
VERSION retrieves the current name and version of the library/run-time/interpreter for the executing program (character string - 17 byte max.).
WEEKDAY current day of week number (Sunday = 1,...,Saturday = 7).
WINDOW current subwindow coordinates and the current cursor coordinates.(non-ANSI)
YEAR current system year (character string - yy).
The following CLOCK operations are supported by PLBCMP and not by SUNDB86x:
Operation Returns the ...
CPUTIME accumulated CPU time for the process in microseconds (numeric - 1 byte minimum, maximum depends on accumulated time). (non-ANSI)
SECONDS retrieves the number of seconds since 12:00am 01/01/70 (numeric - 4 bytes (INTEGER) or 10 bytes (FORM)). (non-ANSI)
SYSDATE retrieves the system day, date, and time (character string - Mon Apr 18 16:00:00 1986, 24 byte character string required or no result). (non-ANSI)
ALSO SEE:

CONTENTS

v1.10
Send e-mail to MMCC.

Write to MMCC Technical Support at:
MMCC, Inc.
600 W. Midland
Bay City, MI 48708
(989) 686-8860
| Home   |

© 1997 MMCC, Inc. All Rights Reserved.

Report problems or suggestions to support@mmcctech.com