4D v14.3Current time |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
Current time
|
Current time {( * )} -> Function result | ||||||||
Parameter | Type | Description | ||||||
* | Operator |
![]() |
Returns the current time from the server | |||||
Function result | Time |
![]() |
Current time | |||||
The Current time command returns the current time from the system clock.
The current time is always between 00:00:00 and 23:59:59. Use String or Time string to obtain the string form of the time expression returned by Current time.
4D Server: If you use the asterisk (*) parameter when executing this function on a 4D Client machine, it returns the current time from the server.
The following example shows you how to time the length of an operation. Here, LongOperation is a method that needs to be timed:
$vhStartTime:=Current time ` Save the start time
LongOperation ` Perform the operation
ALERT("The operation took "+String(Current time-$vhStartTime)) ` Display how long it took
Product: 4D
Theme: Date and Time
Number:
178
Created: < 4D v6
Milliseconds
String
Tickcount
Time Operators
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)