ConvertToDbTimeStamp
(ODBC Manager Library)
dbType |
Required numeric value, indicating the type of this DB connection.
DBType | Meaning |
---|
0 | MS SQL | 1 | MS Access | 2 | Oracle | 3 | MySQL | 4 | SyBase |
|
ValueIn |
Required. Numeric value expressed as a VTScada timestamp |
NoDelimiters |
Optional. If TRUE (non-zero), then text delimiters will be suppressed in the output value. Defaults to true |
Comments: | This module is a member of the ODBCManager Library, and must therefore be prefaced by \ODBCManager, as shown in "Format" above. |
Example:
This will set DBTime to the time when the module opened, formatted as a MS Access timestamp.
[
RightNow { Timestamp in seconds, set when the page opens. };
DBTime { The same timestamp formatted for MS Access };
]
Init[
RightNow = Now(1); If 1 Main;
[
DBTime = \ODBCManager.ConvertToDbTime(1, RightNow);
]
]
Trihedral and VTScada are registered trade marks of Trihedral Engineering Limited
© Trihedral Engineering Limited 1983- 2024 All rights reserved.