# The importance of time

All devices have an internal clock (routers, switches, your PC, etc).

In Cisco IOS, you can view the time with the `show clock` command.

```
R1# show clock
*00:16:00.87 UTC Sat Dec 26 2020
```

{% hint style="info" %}
The default time zone is UTC (Coordinated Universal Time).
{% endhint %}

If you use the `show clock detail` command, you can see the time source.

```
R1# show clock detail
*00:19:49.411 UTC Sat Dec 2 2020
Time source is hardware calendar
```

{% hint style="info" %}
\* = time is not considered authoritative

`Time source is hardware calendar` - The hardware calendar is the default time source.
{% endhint %}

The internal hardware clock of a device will drift over time, so it is not the ideal time source.

From a CCNA perspective, **the most important reason to have accurate time on a device is to have accurate logs for troubleshooting**.

**Syslog**, the protocol used to keep device logs, will be covered later.

## Logs

<figure><img src="/files/LuzYLsbcwjJkKYqsquAn" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/3yl6Su4Mxm76nCvmm3Lr" alt=""><figcaption></figcaption></figure>


---

# 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://davidjosearaujo.gitbook.io/online-courses/ccna-200-301/network-time-protocol/the-importance-of-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.
