TIBCO FTL®

Data Fields
tibDateTime Struct Reference

DateTime struct. Application programs can use this data structure to represent date and time values with large range and nanosecond precision. More...

## Data Fields
tibint64_t | nsec
tibint64_t | sec

## Detailed Description

DateTime struct. Application programs can use this data structure to represent date and time values with large range and nanosecond precision.

`tibDateTime` values combine two numeric components.

- The `sec` component represents whole seconds with up to 64 bits. Zero denotes the UNIX epoch – midnight entering January 1, 1970.
- The `nsec` component represents nanoseconds after the time that the `sec` component denotes. Although the struct stores this component in a signed 64-bit integer, this component is always non-negative, between zero and 999999999.

For example, the value -1 seconds plus 999,999,998 nanoseconds represents December 31, 1969, 2 nanoseconds before midnight (that is, 2 nanoseconds before the epoch).

## Field Documentation

## ◆ nsec

tibint64_t tibDateTime::nsec

## ◆ sec

tibint64_t tibDateTime::sec

The documentation for this struct was generated from the following file:

- types.h