# Time# - script and chart function

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

Syntax:

time#(text[, format])

Return data type: dual

Arguments:

Time# arguments

| Argument | Description |
| --- | --- |
| text | The text string to be evaluated. |
| format | String describing the format that should be used to interpret the text string. If omitted, the short date format, time format, and decimal separator set in the operating system<br>is used. |

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/InterpretationFunctions/time_hash.htm)

#### Examples and results:

The examples below assume the two following operating system settings:

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

Example 1:

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

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

Example 2:

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

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