4D v14.3

Time

Home

 
4D v14.3
Time

Time 


 

Time ( timeValue ) -> Function result 
Parameter Type   Description
timeValue  String, Longint in Value to return as a time
Function result  Time in Time specified by timeValue

The Time command returns a time expression equivalent to the time specified in the timeValue parameter.

The timeValue parameter can contain either:

  • a string containing a time expressed in one of the standard time formats of 4D corresponding to the language of your system (for more information, refer to the description of the [#cmd id="10"/] command).
  • a longint that represents the number of seconds elapsed since 00:00:00.

The following example displays an alert box with the message “1:00 P.M. = 13 hours 0 minute”:

 ALERT("1:00 P.M. = "+String(Time("13:00:00");Hour Min))

You can express any numerical value as a time:

 vTime:=Time(10000)
  //vTime is 02:46:40
 vTime2:=Time((60*60)+(20*60)+5200)
  //vTime2 is 02:46:40

 
PROPERTIES 

Product: 4D
Theme: Date and Time
Number: 179

 
HISTORY 

New
Created: < 4D v6
Modified: 4D v14

 
SEE ALSO 

ARRAY TIME
String
Time string

 
ARTICLE USAGE

4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)

Inherited from : Time ( 4D v12.4)