DateParseDurationHours()

Parses a date string and returns the number of hours.

Token ID

AFTKN_DATE_PARSE_DUR_HR or 810

Syntax

WORD DateParseDurationHours(ANSISTRING DateString)

Parameters

DateString As ANSISTRING

Rounds down to the closest hour. For example: "119" minutes returns 1 hour; "1 hour 30 minutes" returns 1; "2.5 days" returns 60; "60 minutes" returns 1. Limits are as follows: 255 for "minutes"; 255 for "days"; 36 for "weeks."

Return Values

WORD