HTIME: Converting the Time Portion of a Date-Time Value to a Number

How to:

The HTIME function converts the time portion of a date-time value to the number of milliseconds if the length argument is eight, microseconds if the length argument is ten, or nanoseconds if the length argument is 12.

Syntax: How to Convert the Time Portion of a Date-Time Value to a Number

HTIME(length, datetime, output)

where:

length

Integer

Is the length of the input date-time value. Valid values are:

  • 8 indicates a time value that includes one to three decimal digits (milliseconds).
  • 10 indicates a time value that includes four to six decimal digits (microseconds).
  • 12 indicates a time value that includes seven to nine decimal digits (nanoseconds).
datetime

Date-time

Is the date-time value from which to convert the time.

output

Floating-point double-precision

WebFOCUS

Feedback