# Job_SetEndTime

> Sets the end time and calculates the number of seconds used between Job_SetStartTime and Job_SetEndTime and writes it to the Job log, e.g:.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/job-functions/job-setendtime/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

#### Description

Sets the end time and calculates the number of seconds used between Job_SetStartTime and Job_SetEndTime and writes it to the Job log, e.g:

12:59:47 : True : Job_SetEndTime : True (Installation Ended)  
12:59:47 : True : Job_SetEndTime : True (Installation time '9' seconds)  
12:59:47 : True : Job_SetEndTime : True (Completed)

### Syntax

Job_SetEndTime() As Boolean

### Example

**VBScript**

```vb
If bStatus Then bStatus = Job_SetEndTime()
```

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### See Also

[Stat_IncJobSucceded](#) [Stat_IncJobSucceded](#) [Job_SetStartTime](/capainstaller/vb-scripting-library/job-functions/job-setstarttime/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
