# DataType:time

Contains data related to time

## Members

| **Type**                                                                                   | **Member**               | **Description**                                                            |
| ------------------------------------------------------------------------------------------ | ------------------------ | -------------------------------------------------------------------------- |
| [*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-string.md)\_\_ | **Date**                 | Date in the format MM/DD/YYYY                                              |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)           | **Day**                  | Day of the month                                                           |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)           | **DayOfWeek**            | Day of the week (1=sunday to 7=saturday)                                   |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)           | **Hour**                 | Hour (0-23)                                                                |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)           | **Minute**               | Minute (0-59)                                                              |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)           | **Month**                | Month of the year (1-12)                                                   |
| [*bool*](/macroquest/data-types-and-top-level-objects/data-types/datatype-bool.md)         | **Night**                | Gives true if the current hour is considered "night" in EQ (7:00pm-6:59am) |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)           | **Second**               | Second (0-59)                                                              |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)           | **SecondsSinceMidnight** | Number of seconds since midnight                                           |
| [*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-string.md)\_\_ | **Time12**               | Time in 12-hour format (HH:MM:SS)                                          |
| [*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-string.md)\_\_ | **Time24**               | Time in 24-hour format (HH:MM:SS)                                          |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)           | **Year**                 | Year                                                                       |
| [*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-string.md)\_\_ | **To String**            | Same as **Time24**                                                         |


---

# 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://macroquest.gitbook.io/macroquest/data-types-and-top-level-objects/data-types/datatype-time.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.
