---
name: "dnsjit.core.timespec"
section: "3"
platform: "linux"
package: "dnsjit"
version: "1.5.0-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dnsjit.core.timespec"
---

# dnsjit.core.timespec(3)

Non-system depended time specification structure definition

## NAME

dnsjit.core.receiver - Non-system depended time specification structure definition

## SYNOPSIS

  typedef struct core\_timespec {\
       int64\_t sec;\
       int64\_t nsec;\
   } core\_timespec\_t;

### C

  \#include "core/timespec.h"

### Lua

  require("dnsjit.core.timespec\_h")

### Lua functions

  local ts = require("dnsjit.core.timespec"):max\_init()

## DESCRIPTION

Mainly used in C modules for a system independent time specification structure that can be passed to Lua.

### Functions

- **Timespec:max\_init**()

  Return a new structure with both *sec* and *nsec* set to 2LL ^ 62, the maximum positive values according to Lua.

## AUTHORS and CONTRIBUTORS

Jerry Lundström (DNS-OARC), Tomáš Křížek (CZ.NIC), Petr Špaček (ISC)

Maintained by DNS-OARC

*https://www.dns-oarc.net/*

## BUGS

For issues and feature requests please use:

*https://github.com/DNS-OARC/dnsjit/issues*

For question and help please use:

*admin@dns-oarc.net*
