How to: |
The HGETC function returns the current date and time in the desired date-time format. If millisecond or microsecond values are not available in your operating environment, the function retrieves the value zero for these components.
HGETC(length, output)
where:
Integer
Is the length of the returned date-time value. Valid values are:
8 indicates a time value that includes milliseconds.
10 indicates a time value that includes microseconds.
12 indicates a time value that includes nanoseconds.
Date-time
Is the returned date-time value.
This example,
HGETC(8, 'HYYMDS')
creates a timestamp representing the current date and time.
iWay Software |