| 
                    
 This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com  | 
            |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
                 
                
    
    
                 | 
                
					
                    
                         
    4D v20.6
 
Time 
                                
                                
        
 | 
                ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Time ( timeValue ) -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| timeValue | String, Longint | 
             
         | 
        Value to return as a time | |||||
| Function result | Time | 
             
         | 
        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:
Note: If the timeValue expression evaluates to undefined, Time returns an empty time (00:00:00). This is useful when you expect the result of an expression (e.g. an object attribute) to be a time, even if it can be undefined.
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
	Product:  4D
	Theme:  Date and Time
	Number:  
        179
        
        
        
	
	Created:  < 4D v6
	Modified:  4D v14
	Modified:  4D v16 R5
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	4D Language Reference ( 4D v20)
	
	
	4D Language Reference ( 4D v20.1)
	
	
	
	4D Language Reference ( 4D v20.2)
	
	4D Language Reference ( 4D v20.3)
	
	4D Language Reference ( 4D v20.4)
	
	
	4D Language Reference ( 4D v20.5)
	4D Language Reference ( 4D v20.6)
	
	
	
Add a comment