# SetTimeFormat

### int SetTimeFormat(short nTimeFormat)

EZGemPlus 라이브러리에서 사용할 \*\*시간 포맷(Time Format)\*\*을 설정합니다. 이 설정에 따라 로그 기록이나 메시지 전송 시 포함되는 시간 정보의 정밀도가 결정됩니다. 보통 현대적인 반도체 공정에서는 밀리초 단위까지 포함하는 16자리 형식을 기본값으로 권장합니다.

Parameters

<table data-header-hidden><thead><tr><th width="187"></th><th width="80"></th><th></th></tr></thead><tbody><tr><td><strong>Name</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td>nTimeFormat</td><td>short</td><td><p>설정할 시간 포맷 값<br></p><p>12: YYMMDDhhmmss (12자리)</p><p></p><p>16: YYYYMMDDhhmmsscc (16자리)</p></td></tr></tbody></table>

```csharp
// 정밀한 시간 기록을 위해 16자리 포맷으로 설정
short format16 = 16;
int result = m_gem.SetTimeFormat(format16);

if (result >= 0)
{
    // 이제 라이브러리는 시간을 YYYYMMDDhhmmsscc 형식으로 처리합니다.
    Console.WriteLine("Time format set to 16 digits (millisecond precision).");
}
else
{
    Console.WriteLine($"Failed to set time format. Error: {result}");
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://nviasoft.gitbook.io/nviasoft-docs/api-reference/undefined-6/settimeformat.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.
