# Time# - script and chart function

Time#() evaluates an expression as a time value, in the time format set in the data load script or the operating system, unless a format string is supplied.

Syntax:

time#(text[, format])

Return data type: dual

Arguments:

Arguments

| Argument | Description |
| --- | --- |
| text | The text string to be evaluated. |
| format | String describing the format of the text string to be evaluated. If omitted, the short date format, time format, and decimal separator set in the operating system<br>is used.<br><br>[Descriptions for number and time formats](https://help.qlik.com/en-US/sense/May2025/Subsystems/Hub/Content/Sense_Hub/Introduction/conventions-number-time-formats.htm) |

Example:

* Time format default setting 1: hh:mm:ss
* Time format default setting 2: hh.mm.ss

`time#( A )`   
where A=09:00:00

Results

| Results | Setting 1 | Setting 2 |
| --- | --- | --- |
| String: | 09:00:00 | 09:00:00 |
| Number: | 0.375 | - |

Example:

* Time format default setting 1: hh:mm:ss
* Time format default setting 2: hh.mm.ss

`time#( 
 A, 'hh.mm' )`   
where A=09.00

Results

| Results | Setting 1 | Setting 2 |
| --- | --- | --- |
| String: | 09.00 | 09.00 |
| Number: | 0.375 | 0.375 |