Time
Time() -> cTimeGets the system clock as text.
Overview
Returns hh:mm:ss from the executing system’s clock. It includes neither date nor time zone and may repeat. It is not a unique identifier, monotonic measurement or cross-server ordering proof. The example only displays its type and current clock value. (Sources: refs. 1–1.)
Syntax
Time() -> cTimeReturn value
Character.
Commented example
#Include "Protheus.ch"
User Function Ed690()
Local cTime := Time()
// Wall clock: do not use as a unique identifier.
ConOut(ValType(cTime))
ConOut(cTime)
Return NilDisplays C and a variable hh:mm:ss time. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
- For auditing define date, zone and clock source; evaluate a dedicated duration API.
- Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.