# Milliseconds

Milliseconds (TimeSpan timeSpan)

| **Name**    | ***Milliseconds***                                                                           |
| ----------- | -------------------------------------------------------------------------------------------- |
| Syntax      | Milliseconds (TimeSpan timeSpan)                                                             |
| Purpose     | To return the Milliseconds component of the specified timeSpan.                              |
| Description | Returns Milliseconds component of the specified timeSpan.                                    |
| Return Type | Int64                                                                                        |
| Parameter   | timeSpan \[System.TimeSpan] – TimeSpan for which the Milliseconds component will be returned |

![](/files/qziJDphy95AStzBX4snA)

**Example**

In this example, we will pass the required parameter to the function transformation object using a *Variables* object.

Where,

*timeSpan* = 05.04:03:02.1200000

![](/files/UOTUscaXgxr7atvsKUNl)

In the output window, you can see that the provided value’s Milliseconds component has been returned.

![](/files/DL3MzuWUT5JxXMEKkYCI)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.astera.com/functions/timespan/milliseconds.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
